Désiré Doué scored in the 78th minute, and Paris Saint-Germain moved a step closer to another trophy with a 2-0 victory over Bayern Munich in the quarterfinals of the Club World Cup on Saturday in Atlanta, a game marred by a gruesome injury to young German star Jamal Musiala.

With PSG two men down after a pair of late red cards and Bayern throwing everyone forward, Ousmane Dembélé added an insurance goal deep into stoppage time to send the French powerhouse on to the semifinals Wednesday against either Real Madrid or Borussia Dortmund at East Rutherford, New Jersey.

Dembélé, whose goal was set up by Achraf Hakimi’s brilliant dribbling through five Bayern defenders, celebrated by sitting with his legs crossed to honor Liverpool player Diogo Jota, who was killed along with his brother in a car wreck early Thursday. A moment of silence was held before the opening kick.

PSG, which claimed its first Champions League title with a 5-0 rout of Inter Milan five weeks ago, broke a scoreless deadlock when João Neves stole the ball from Harry Kane near the halfway line to send the French team sprinting toward the Bayern goal.

Neves got the ball back off a give-and-go and found Doué lurking just outside the top of the area. His left-footed shot caught Bayern goalkeeper Manuel Neuer flat-footed as it skidded inside the right post.

But PSG had to hold on for dear life to preserve the win after Willian Pacho and Lucas Hernández were both sent off with red cards. Pacho was called for a reckless challenge and Hernandez earned red for doling out an elbow.

Bayern had two apparent goals flagged for offside, including a header by Kane. In the waning seconds, the German club was awarded a penalty kick, only to have it waved off after a video review.

Real Madrid 3, Borussia Dortmund 2: Kylian Mbappé’s spectacular bicycle kick was among three goals in second-half stoppage time and Real Madrid beat Borussia Dortmund in a Club World Cup quarterfinal match in East Rutherford, New Jersey as goalkeeper Thibaut Courtois used his fingertips to palm away the potential tying goal on the game’s final play.

Gonzalo García and Fran García scored in the first 20 minutes as Madrid built a 2-0 lead.

Dortmund’s Maximilian Beier scored three minutes into stoppage time and Mbappé, who entered in the 67th, restored a two-goal lead with his bicycle kick one minute later.

Serhou Guirassy converted a penalty kick in the eighth minute of added time after he was fouled by Dean Huijsen, who received a red card and will miss the semifinals.

Courtois used all of the lengthy arm on his 6-foot-7 frame to tip away Marcel Sabitzer’s shot just before the final whistle.

Madrid advances to a semifinal match against Champions League winner Paris Saint-Germain on Wednesday, a day after Chelsea meets Brazilian club Fluminense.

On a sunny afternoon with an 86-degree (30-degree Celsius) temperature at the 3 p.m. kickoff, Gonzalo García scored in the 10th minute and Fran García in the 20th for Real Madrid.

Gonzalo García, a 21-year-old who made only five Spanish league appearances in the past two seasons, was given the start by new Real Madrid coach Xabi Alonso over Mbappé, still regaining fitness after acute gastroenteritis. García has four goals, tying Benfica’s Ángel Di María and Al Hilal’s Marcos Leonardo for the tournament lead.