In the end, the Nets were celebrating and the Knicks were fuming.
In its 10th season, the matchup between teams just a few miles apart looked like a real rivalry.
''Being here two years now, it doesn't matter who's on that team or who's on this team, I think the energy's always going to be there,'' Harden said. ''... Whether it's here or at MSG, the fans are going to be cheering for their respective teams and it's going to be a good game every time, and tonight we're just happy to come out with the win.''
They got it after James Johnson made two free throws with 2.2 seconds left to give the Nets a 112-110 victory Tuesday night.
Harden had 34 points, 10 rebounds and eight assists, and Durant heated up after a slow start to finish with 27 points and nine assists. He had 11 points in the final 5:45, but the Knicks sent a second defender to force him to give the ball up on the last possession - as Durant suspected might happen.
''But it's risky to do that in the fourth, I mean the last shot of the game,'' he said. ''And yeah, I was prepared for it coming out of the timeout.''
The ball went to Johnson, who was fouled in the lane and made the free throws for the final points of an entertaining, nationally televised undercard to the Warriors-Suns main event.
Alec Burks scored a season-high 25 points in his new role as the Knicks' starting point guard.
Julius Randle added 24 points, nine rebounds and eight assists. But he took only two free throws and was hit with a late technical foul for complaining about not getting calls.
''As aggressive as I play, attacking the paint, I can't be penalized for just being stronger than people and that's the answer that I got today,'' Randle said.
The teams traded leads throughout the fourth quarter in front of an announced crowd of 18,081.
The Nets had highlight plays all over the floor to open the second half, with Harden's soaring follow slam and DeAndre' Bembry's swatted shot into the seats coming during a 14-0 spurt that turned a one-point halftime deficit into a 74-61 lead.
Brooklyn had the lead up to 16 with 4 minutes left in the third period, but the Knicks whittled it down to 88-84 heading to the fourth. The lead was never bigger than that in the final 12 minutes.
But the Knicks didn't do enough in a game where the Nets shot 25 free throws to their 12.
''I want to take a look at the film. There's a big discrepancy in free throws. I can tell you that,'' Knicks coach Tom Thibodeau said angrily. ''Julius is driving the ball, and he gets two free throws.''
Nets: Harden surpassed 2,500 3-pointers, joining Ray Allen, Stephen Curry and Reggie Miller. .... With Kyrie Irving absent all season after refusing to get vaccinated as mandated in New York City and Joe Harris recovering from ankle surgery, Durant has had to take on a heavier load than expected.
''It's not ideal to have him have such a burden, but I don't know what options we have other than to play him less and lose more,'' coach Steve Nash said.
''Kemba's a great human being, great teammate,'' Nash said. ''No matter how great a teammate and how great an attitude you have, to take that scenario into account, it's very difficult for a guy who competes and wants to play and prepares the way he does to play.''
Harden let out a loud yell and did a dance after his follow dunk in the third quarter.
''That might've been the first one of my career, 13 years, so I had to let it out,'' he said. ''It wasn't that great when I looked at the highlight, but it felt great, that's all that matters.''
Knicks: Host Chicago on Thursday.
Nets: Host Minnesota on Friday.
More AP NBA: https://apnews.com/hub/NBA and https://twitter.com/AP-Sport