Argentina scored two second half goals to go top of group C against Poland who also qualify on goal difference from a group filled with rollercoaster of emotions.
Wojciech Szczęsny had a brilliant first half, where he had to be alert to prevent a direct corner kick played by Dimaria from scoring and saving an initial Julian Alvarez shot before the Manchester City forward swung in a cross which was met by Messi but was deemed to have been fouled by Szczesny upon VAR consultation.
Messi stepped up to take the penalty, but the Juventus goalkeeper was up to the task.
At the start of the second half, Brighton star Alexis MacAllister netted his first international goal, as he received a cut back from Nahuel Molina.
In the 67th minute, Alvarez scored a strikers finish, turned inside the box after receiving a pass from Enzo Fernandes before shooting into the top corner.
Alvarez and Taglafico tried to score a third but their attempt were off target and cleared off the line respectively.
Argentina will face Australia while Poland will face France.