Who "won" and is on to the next stage in the cup? And why?

First match:

Second match:


Sorry if this topic exists already but I tried searching without any luck.

Thanks!