>>149427601 (OP)head to head result takes precedence. So in that scenario with three teams tied with 5 points (I suppose a temporary or hypothetical ranking) the results against the last one are not considered.
MON-INT 1-1
RIV-MON 0-0
INT-RIV 0-0 (instead of the 2-0 final result)
Between the three, there is parity of points (2 draws each) and goal difference (0 each) but the third tie-breaker is number of goals scored, so MON and INT go through with 1 goal scored each while RIV is eliminated (with two 0-0 draws).
The whole group is only considered after that (e.g. if all three games were 0-0 draws).