Palmeiras rallied from two goals down to snatch a 2-2 draw against Inter Miami and qualify top of Group A for the Club World Cup last 16 on Monday, a result that sent both teams through to the knockout phase.
Goals from Tadeo Allende and Luis Suarez gave Miami a two-goal lead before Paulinho and Mauricio scored in the last 10 minutes to get Palmeiras back on level terms.
Both teams finished on five points with Inter Miami second on goal difference, while Al-Ahly and Porto were both eliminated after drawing 4-4.
Lionel Messi's side will take on European champions Paris St Germain, where the Argentine spent two seasons from 2021-23, while Palmeiras face fierce rivals Botafogo in an all-Brazilian clash for a place in the quarter-finals.
Inter Miami are the only team from MLS to reach the last 16 after both Los Angeles FC and the Seattle Sounders were eliminated.
Comments