The victory, which completed a four-game sweep of the season series with the Nets, moved the Celtics a game ahead of the Cleveland Cavaliers atop the conference.
Despite Brooklyn's loss, Brook Lopez scored 25 points and became the leading scorer in franchise history, passing Buck Williams. Jeremy Lin scored 26 points and grabbed a career-high 12 rebounds for the Nets.
Heat 124, Cavaliers 121 (OT)
The Heat (40-41) will need to win their regular-season finale on Wednesday against the Washington Wizards to have any hope of making the playoffs. Even with a victory, Miami would need a loss by Indiana or Chicago.
Tyler Johnson had 24 points and Hassan Whiteside added 23 points and 18 rebounds to help Miami snap a three-game home losing streak. Deron Williams, starting for Irving, scored 35 points to lead Cleveland. Kevin Love had 25 points and 10 rebounds before fouling out with 34 seconds left in overtime.
Bulls 122, Magic 75
Nikola Mirotic added 16 points and Dwyane Wade kicked in 13 to a balanced Bulls attack that included points from the five starters and all eight players off the bench. Chicago and Miami are 40-41 and in a tie for eighth place in the Eastern Conference with one game remaining. The Bulls, who host the Brooklyn Nets on Wednesday, own the tiebreaker with the Heat.
Evan Fournier and Nikola Vucevic led the Magic with 14 points each.
Bucks 89, Hornets 79
MILWAUKEE -- Giannis Antetokounmpo posted his third triple-double of the season, and Jason Terry scored 15 points off the bench as Milwaukee beat Charlotte to clinch a winning season.
Michael Kidd-Gilchrist led the Hornets with 13 points.
Pacers 120, 76ers 111
Myles Turner contributed 18 points and 13 rebounds, and Kevin Seraphin chipped in 17 points for the Pacers (41-40). Indiana, which is seventh in the Eastern Conference, would seal a playoff berth with a home win over Atlanta on Wednesday.
Rookie Timothe Luwawu-Cabarrot had a career-high 24 points for the 76ers.
Wizards 105, Pistons 101
AUBURN HILLS, Mich. -- Bradley Beal poured in 33 points and Washington spoiled Detroit's final game at The Palace of Auburn Hills.
Markieff Morris supplied 20 points and eight rebounds, and Tomas Satoransky added 11 points for the Wizards. With Washington locked into the No. 4 seed in the Eastern Conference, coach Scott Brooks sat John Wall and Otto Porter Jr.
Tobias Harris' 22 points led the Pistons, who are moving to the new downtown Little Caesars Arena next season.
Jazz 105, Warriors 99
George Hill paced the Jazz with 20 points, going 5-for-7 from 3-point range, after being upgraded from questionable with a right groin strain. The victory snapped Utah's seven-game losing streak against the Warriors. Klay Thompson had the night off for Golden State.
The Jazz remain tied with the Los Angeles Clippers for the No. 4 seed for the Western Conference playoffs.
Trail Blazers 99, Spurs 98
PORTLAND, Ore. -- Noah Vonleh converted a layup as time expired to give the Portland its third consecutive win and ninth in the past 11 outings.
Shabazz Napier scored a career-high 32 points for the Trail Blazers, and Kawhi Leonard scored 18 points for the Spurs, who lost their third game in a row.
All five starters scored in double figures for Portland, including Evan Turner with 16 points, Pat Connaughton with a career-high 15, Meyers Leonard with 13 and Vonleh with 12 to go with 11 rebounds.
Clippers 125, Rockets 96
Jamal Crawford added 19 points off the bench and DeAndre Jordan added 14 points and 11 rebounds. If the Clippers win the final game of the season at home against the Sacramento Kings Wednesday, they will host the Utah Jazz in the first round of the playoffs.
Houston has lost two of its last three games. James Harden played just 24 minutes and scored 14 points on 2-of-9 shooting.