If the points are the same, compare the goal difference.
If the goal difference is the same, compare the total number of goals scored by each team.
The total number of goals is the same, compare the number of goals conceded.
This is basically enough for the group stage. If there is a draw, there will be a penalty, which means that there is only one last group match left, or a draw.
After entering the top 32, there are only overtime and penalty kicks left.