Joel Embiid, limping throughout the game and perhaps lucky not to have been ejected for kicking a Nets player in the groin area, blocked a potential tying basket with 8.8 seconds left and the Philadelphia 76ers beat Brooklyn 102-97 on Thursday night to take a 3-0 lead in the first-round series.

Tyrese Maxey made the tiebreaking 3-pointer with 44 seconds left for the 76ers, who can sweep their way into the second round with a victory Saturday in Brooklyn.

With James Harden having been ejected in the third quarter for another groin shot and Embiid not looking like his usual dominant self, Maxey took over the offense and scored eight straight points, turning a five-point deficit into a 99-96 lead on his 3-pointer.

Spencer Dinwiddie made one free throw, then appeared to have a path to the basket for a tying layup before Embiid rose up and swatted it. P.J. Tucker made a free throw to make it 100-97, and the Nets turned it over on their next possession.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Joel Embiid against Nets

Joel Embiid #21 of the Philadelphia 76ers dribbles against Dorian Finney-Smith #28 of the Brooklyn Nets during the first half of Game Three of the Eastern Conference First Round Playoffs at Barclays Center on April 20, 2023, in the Brooklyn borough of New York City. (Sarah Stier/Getty Images)

Maxey scored 25 points and Harden had 21 for the 76ers. Embiid shot just 5 for 13 but had 14 points and 10 rebounds.

Mikal Bridges scored 26 points and Dinwiddie had 20 for the Nets, who have lost nine straight playoff games and are on the verge of being swept for the second straight year. Cam Johnson scored 17 points.

Embiid went to the locker room for treatment after checking out in the first quarter, then was limping multiple times later.

The 76ers might've been lucky he was still in the game at that point.

Nets fans loudly booed the decision not to eject him for kicking his leg up toward Nic Claxton's groin in the first quarter and those not in the arena took to social media to ask why he wasn't, as Golden State's Draymond Green was for stepping on Sacramento's Domantas Sabonis in Game 2 of their series. Green was then suspended by the NBA for Game 3.

James Harden with the ball

Philadelphia 76ers' James Harden looks to pass the ball during the first half of Game 3 of the team's NBA basketball first-round playoff series against the Brooklyn Nets on Thursday, April 20, 2023, in New York.  (AP Photo/Frank Franklin II)

LEBRON JAMES APPEARS TO KEEP TWITTER VERIFICATION; ELON MUSK ADMITS HE’S ‘PAYING FOR A FEW PERSONALLY’

But the ruling went against the 76ers in the third quarter when Harden, while closely guarded by Royce O'Neale, swung out his arm and struck the swingman, who fell to the court in pain.

The Nets raced to a 19-11, riding an emotional boost after Embiid's flagrant foul. But Philadelphia would recover to lead 32-28 after one, extended the lead to 51-40 on Maxey's 3-pointer with 3:52 left in the half and the lead remained 11 at the break.

But Bridges got the Nets off to a quick start in the third and Johnson scored 13 points, helping the Nets outscore the 76ers 35-18 in the third to bring an 82-76 edge to the fourth.

TIP-INS

76ers: Tobias Harris scored 15 points.

Nets: Brooklyn's last playoff victory was Game 5 of the 2021 Eastern Conference semifinals, before Milwaukee rallied to win that series and eventually the NBA title. ... The Nets fell to 0-6 vs. the 76ers at home in the playoffs. They are 4-5 on the road, with one win in 2019 and three in 1984, when they stunned the defending NBA champions 3-2 in the first round.

De'Anthony Melton dunk

Philadelphia 76ers' De'Anthony Melton (8) dunks against the Brooklyn Nets during the first half of Game 3 in an NBA basketball first-round playoff series Thursday, April 20, 2023, in New York.  (AP Photo/Frank Franklin II))

CLICK HERE TO GET THE FOX NEWS APP

SECRET STAT?

76ers coach Doc Rivers was answering a question about how the Nets were defending Harden when he revealed something that created some puzzled looks in the room.

"I don’t want to sound like I’m campaigning, but I am," Rivers said. "James and Joel do lead the league in missed calls, as far as fouls. They got fouled the most, and that’s not a Sixers stat by the way. I’m just saying."

Asked for more details about this stat, Rivers would only reply: "I will just say that it’s a stat that we know that it’s there."