I deleted my post because i wasn't sure so i went to check. But yes, if two teams have the same points, the direct matchup only matters. Poland is eliminated because even if they win 7-0, they can't overtake Austria because they lost against them today.
The goal difference only comes after.