Klay Thompson tied a season high with 27 points to lead the Warriors, who have won five straight.
LeBron James led Miami with 31 points, reaching the 20-point mark for the 25th consecutive game -- the longest current streak in the NBA.
Warriors guard Jarrett Jack dribbled the ball at the top of the key as the clock ticked down before finding Green, who caught a quick pass from Jack underneath the basket and made the layup.
James then missed a baseline jumper, sending Miami to only its second loss in 12 home games.
David Lee had 22 points and 13 rebounds, and Jack added 20 points for the Warriors.
THUNDER 92, HORNETS 88
OKLAHOMA CITY -- Kevin Durant scored 35 points and Oklahoma City extended its winning streak to nine games with a victory over New Orleans.
The Thunder rallied from an 11-point second-half deficit and matched their longest win streak since the franchise moved from Seattle.
At 18-4, the Thunder also matched the second-best start in franchise history. Seattle started 20-2 in the 1993-94 season and the Thunder started 18-4 last season.
Brian Roberts scored 16 points to lead the Hornets, who lost their fifth straight game overall and seventh straight against Oklahoma City.
CLIPPERS 100, BOBCATS 94
CHARLOTTE, N.C. -- Chris Paul had 19 points and 10 assists to help the Clippers extend their longest win streak in two decades to eighth with a victory over Charlotte.
The Bobcats trailed 78-71 entering the fourth quarter and got as close as three before Barnes scored on a fast break dunk and hit a 3-pointer to push the lead back to eight.
NETS 94, RAPTORS 88
CELTICS 117, MAVERICKS 115, 2OT
BOSTON -- Paul Pierce scored 34 points, including a 3-pointer at the start of the second overtime to give Boston the lead for good, and the Celtics held on to beat Dallas.
Pierce made five of six free throws in the second overtime. With his basket with 59 seconds left in the first OT, he surpassed 23,000 career points. He is the 25th NBA player to reach the mark.
SUNS 82, GRIZZLIES 80
PHOENIX -- Goran Dragic made a short hook shot from the left baseline with 0.5 seconds remaining to help Phoenix snap a seven-game losing streak with a win over Memphis.
A lob attempt off an inbound pass by the Grizzlies was broken up by a pair of Phoenix defenders as time expired.
BULLS 96, 76ERS 89
Less than 24 hours after losing to the Los Angeles Clippers by five points at United Center, the Bulls traveled to Philadelphia and appeared more rested than the Sixers, who had Tuesday off.
BUCKS 98, KINGS 85
Ersan Ilyasova added 16 points and a season-high 14 rebounds, and Luc Richard Mbah a Moute scored a season-high 17 in his first start of the season for Milwaukee (11-9), which has its best 20-game start since 2005-06.
Tyreke Evans had 17 points in his return to Sacramento's lineup after missing three straight games -- and five of six -- with a sore left knee. John Salmons added 16 points. The Kings were without center DeMarcus Cousins, who was suspended one game for striking Dallas' O.J. Mayo in the groin.
PACERS 96, CAVALIERS 81
INDIANAPOLIS -- Paul George scored 27 points to help Indiana overcame a 16-point deficit in a win over Cleveland.
Indiana, third in the NBA in scoring defense and No. 1 in opponent field-goal percentage coming in, held the Cavaliers to 23 points on 8-for-41 shooting in the second half -- Cleveland's lowest-scoring half of the season.
TIMBERWOLVES 108, NUGGETS 105
Love finished with eight points on 3-for-17 shooting and grabbed 14 rebounds on a day he had to explain to Minnesota's owner and his teammates some critical comments he made about the franchise.
The Timberwolves shot under 40 percent for much of the game, but made 30 of 37 from the free throw line. The Nuggets were just 14 of 24 at the line.
Kenneth Faried had 26 points and 14 rebounds for the road-weary Nuggets, who missed a 3-point attempt at the buzzer that would have tied the game.
HAWKS 86, MAGIC 80
Atlanta extended its regular-season win streak against Orlando to eight with its second win over the Magic this season.
Orlando also struggled from the field, connecting on only 31 of 81 shots, in dropping its fourth straight home game. The Magic get a chance to end the skid Friday against Golden State.
ROCKETS 99, WIZARDS 93
The Wizards threatened late in the fourth quarter, but Chandler Parsons scored eight straight points for Houston in the final three minutes, including two 3-pointers, to secure the victory. Parsons finished with 18 points and eight rebounds.
It was Houston's first victory since McHale rejoined the team last Saturday following the death of his 23-year-old daughter. Alexandra "Sasha" McHale died Nov. 24 of complications from Lupus.
Rookie Bradley Beal had 20 points to lead Washington.
Copyright 2012 by The Associated Press
This story is from ESPN.com's automated news wire. Wire index
MORE NBA HEADLINES
- Pacers' George: Ready to live up to pressure
- NBA putting its social media handle on ball
- Ginobili has stress fracture, to skip World Cup
- Bosh on leaving Heat: 'It was close'