Jalen Brunson scored 14 of his 41 points in the fourth quarter and Josh Hart made a tiebreaking 3-pointer with 24.4 seconds left as the New York Knicks advanced to the Eastern Conference semifinals with a 118-115 win over the Philadelphia 76ers on Thursday.

Donte DiVincenzo added 23 points, OG Anunoby had 19 and Hart finished with 16 points, 14 rebounds and seven assists as the Knicks reached the second round for the second consecutive season.

New York will face Indiana in the East semis after the Pacers eliminated the Bucks in six games. Game 1 is Monday at Madison Square Garden.

Brunson became the first player to score 40 or more points to close out a series since Michael Jordan for Chicago against Cleveland in 1989.

Joel Embiid had 39 points and 13 rebounds but was held to six points in the fourth quarter. Buddy Hield scored 20 points off the bench and Tyrese Maxey was a non-factor in the first half and finished with 17 points on 6-of-18 shooting as the 76ers failed to win a playoff round for the first time since 2019-20.

The Knicks led 109-101 with 2 ½ minutes remaining in the back-and-forth game, but Kelly Oubre Jr. hit a 3 and a layup sandwiched around Maxey’s layup to make it a one-point game.

After Brunson’s layup put New York up 111-108 with under a minute to play, Maxey converted a three-point play with 35 seconds left to tie it.

Hart drilled a 3 from the top of the key before Embiid’s layup four seconds later made it 114-113. DiVincenzo and Brunson each sank two free throws to seal it.

Pacers advance with rout of Bucks

Obi Toppin led six players in double figures with a playoff career-high 21 points and the Indiana Pacers won a playoff series for the first time in a decade with a 120-98 rout of the Milwaukee Bucks.

T.J. McConnell had 20 points and nine assists off the bench, Pascal Siakam added 19 points and Tyrese Haliburton contributed 17 points and 10 rebounds for the Pacers, who had lost their last six playoff series since 2014.

Indiana will face New York in the next round after the Knicks eliminated Philadelphia.

The Pacers went 8-3 against the Bucks this season and handed Milwaukee its second straight first-round exit.

Damian Lillard returned from a right Achilles injury with 28 points and Bobby Portis added 20 and 15 rebounds for the Bucks, who shot just 42.2 percent (35 for 83) from the field and 25.9 percent (7 for 27) from 3-point range.

Two-time MVP Giannis Antetokounmpo missed the entire series after straining his left calf on April 9.

The Pacers used a 15-3 run in the first quarter for a 29-19 lead and never trailed again.

Milwaukee cut the deficit to 85-78 with 6:05 left in the third, but McConnell capped an 11-0 run with consecutive 3s to make it 96-78 early in the fourth.