Onyeka Okongwu tipped in a missed shot with 6.1 seconds left, and Jaylen Brown missed a jumper at the buzzer on Tuesday night as the visiting Atlanta Hawks overcame a 15-point, second-half deficit to beat the Boston Celtics 117-116 in their NBA Cup opener.

Dyson Daniels scored a career-high 28 points, and Jalen Johnson had 18 points, 13 rebounds and 10 assists. Atlanta snapped a two-game losing streak despite playing without star Trae Young.

Brown scored a season-high 37 points and Derrick White added 31 for Boston as it opened the in-season tournament on a green floor with a special parquet design. The defending NBA champions had a two-game winning streak snapped and lost for just the third time this season.

KNICKS 109, 76ERS 99 >> OG Anunoby scored 24 points and visiting New York spoiled Joel Embiid’s season debut, beating Philadelphia in the opener of NBA Cup group play.

Embiid finished with 13 points in 26 minutes and was unable to lift the struggling Sixers, who fell to 2-8. He shot 2 of 11 and had only three rebounds. Paul George led the Sixers with 29 points and 10 rebounds.

Josh Hart added 14 points, 12 rebounds and 10 assists for the Knicks. Karl-Anthony Towns had 21 points and 13 rebounds.

PISTONS 123, HEAT 121 (OT) >> Malik Beasley made a tiebreaking free throw with 1.1 seconds left in overtime after Miami was given a technical foul for calling a timeout when it had none left, and host Detroit edged the Heat in an NBA Cup game.

Tyler Herro’s jumper put Miami up 121-119 with 1.8 seconds left, but after a timeout, Cade Cunningham hit Jalen Duren with an alley-oop on the inbounds pass.

The Heat then called the illegal timeout. Beasley hit the foul shot to put Detroit up 122-121, then added another free throw with 0.1 seconds left.

Herro had 40 points, including 20 in the fourth quarter and overtime.

Beasley and Cunningham each scored 21 for the Pistons.

MAGIC 114, HORNETS 89 >> Franz Wagner scored 32 points and Jalen Suggs hit his first seven shots, including three 3-pointers, to lead Orlando at home over Charlotte.

LaMelo Ball scored 16 of his 35 points in the first quarter for the Hornets in the opening round of Group A play in the NBA Cup. Coming off a career-high 38 points in Sunday’s overtime loss at Philadelphia, Ball added six rebounds and seven assists.

Suggs had 13 points in the first quarter and finished with 17 points.

Moussa Diabate had 12 points and 15 rebounds for Charlotte.