Manchester City and Real Madrid clinched top spot in their groups with commanding wins at the FIFA Club World Cup on Thursday, as Al-Hilal advanced and Salzburg bowed out.
Manchester City struck three second-half goals to beat Juventus 5-2 in Orlando and clinch top spot in Group G.
Jeremy Doku opened the scoring for the Premier League side, showing composure after Rayan Ait Nouri's through ball to slot past goalkeeper Michele Di Gregorio.
Dutch midfielder Teun Koopmeiners equalized by intercepting Ederson's pass out from the back, driving into the box and firing a low shot that beat the Brazilian goalkeeper at his near post.
Pierre Kalulu then put the ball in his own net while attempting to clear Matheus Nunes' cross, restoring City's lead.
Erling Haaland made it 3-1 by bundling home a Nunes cross from the right and Phil Foden added a fourth with a tap-in after combining with Savinho.
The Brazilian winger added to the Turin club's misery with a long-range strike that bounced in off the underside of the bar after Di Gregorio's rushed clearance.
Juventus pulled one back late through Dusan Vlahovic, who held off his marker after Kenan Yildiz's slide-rule pass and rifled low past Ederson.
"I liked the way we did it," City manager Pep Guardiola said. "It has been a long time since we had a performance like this on and off the ball. The players were committed and we are happy to beat a top side."
Juventus manager Igor Tudor admitted his team was outclassed in all aspects.
"It's a bad feeling after the match," he said. "Conceding five goals is never a good sign. We rotated the squad because we were already qualified, but they played incredibly well. Their pressing didn't let us breathe. We couldn't get out."
Manchester City will meet Al-Hilal in Orlando on Monday while Juventus, which finished second in the group, will face Real Madrid in Miami on Tuesday.
In Washington D.C., Kodjo Laba and Kaku scored either side of halftime as Al Ain recovered from a goal down to beat Wydad Casablanca 2-1.
The Moroccan side went ahead through Cassius Mailula's fourth-minute strike but Laba equalized from the penalty spot after Ayoub Boucheta brought down Adis Jasic just before halftime.
Paraguayan midfielder Kaku completed the turnaround shortly after the restart as he lashed home from distance after Matias Palacios' layoff.
There was little at stake for either side beyond pride, with both teams already eliminated before the Group G fixture began.
"This has been a good experience for us. It was a difficult group, with [Manchester] City and Juventus, but we competed until the end," Kaku told reporters.
Mailula said his team had taken positives from its participation in the tournament, despite scoring only two goals in three games.
"It's been difficult and we are sorry that we didn't get the best results," the South Africa international striker said. "But we learned a lot and that's the most important thing, to take lessons and grow."
In Philadelphia, Vinicius Junior scored one goal and set up another as Real Madrid cruised to a 3-0 win over Salzburg. The result guaranteed top spot in Group H for Xabi Alonso's men while the Austrian club was eliminated.
Vinicius gave the Spanish giants the lead in the 40th minute, running onto Jude Bellingham's perfectly weighted pass and cutting inside before hitting a low 18-yard drive into the near corner.
The Brazilian forward then set up Federico Valverde with an ingenious backheel as the Uruguayan swept a first-time effort past Christian Zawieschitzky.
Twenty-one-year-old forward Gonzalo Garcia put the result beyond doubt six minutes from time by capitalizing on chaotic defending to dink a clever shot over Zawieschitzky.
Real Madrid finished the group stage with seven points, three ahead of third-placed Salzburg.
"We were happy with our first half but we eased off a bit in the second," Vinicius said after the match. "We have to make sure that doesn't happen in the next match, because we're now in the round of 16. It's the most important part of the competition and every player wants to be involved."
In Thursday's other match, goals from Salem Al-Dawsari and Marcos Leonardo handed Al-Hilal a 2-0 win over Pachuca, ensuring the Saudi Pro League side to be the only Asian club to reach the knockout stage. They will meet Manchester City on Monday.
Al-Dawsari fired Al-Hilal ahead in the 22nd minute by controlling Nasser Al-Dawsari's pass and expertly lifting a shot over goalkeeper Sebastian Jurado.
Brazilian forward Marcos Leonardo doubled the advantage in second-half stoppage time, beating the offside trap to latch onto Ruben Neves' pass before rounding Jurado and tapping into an empty net.
Al-Hilal finished second in Group H and is yet to lose a match in the tournament while Pachuca bowed out without a point.