Malik Beasley scored 26 points, Cade Cunningham had 21 points and 11 assists and the host Detroit Pistons beat the Boston Celtics 117-97 on Wednesday night in a matchup of two of the NBA’s hottest teams.

The Pistons (33-26) won their eighth straight and ended a 12-game losing streak against Boston, two nights after stopping a 10-game skid against the Los Angeles Clippers.

Jayson Tatum scored 27 points for Boston (42-17), which had won six straight and 10 of 11.

The Pistons had a 49-33 rebounding edge.

PACERS 111, RAPTORS 91 >> Tyrese Haliburton had 33 points and 11 assists to help host Indiana beat Toronto.

Haliburton was 12 of 15 from the field, going 7 of 9 from 3-point range.

Immanuel Quickley scored 18 points for the Raptors. RJ Barrett and Jonathan Mogbo each had 16.

KNICKS 110, 76ERS 105 >> Jalen Brunson had 34 points and seven assists, Mikal Bridges scored 28 points and host New York held off Philadelphia.

Tyrese Maxey scored 30 points for the 76ers, who lost their ninth straight. Paul George had 25 points, eight rebounds and seven assists.

THUNDER 129, NETS 121 >> Shai Gilgeous-Alexander scored 27 points, Chet Holmgren had 22 points and 17 rebounds and visiting Oklahoma City rebounded from a stunning collapse with a game-changing blitz in the fourth quarter to beat Brooklyn.

The Thunder were playing for the first time since their 131-128 loss to Minnesota on Monday, when they led by 24 points in the fourth quarter and were still ahead by 16 with under 4 minutes remaining in regulation.

Day’Ron Sharpe scored a career-high 25 points in his first start of the season for the Nets, adding 15 rebounds and five assists.