I had a similar situation too.
It was a season i was tanking and in the first leg I forgot or didn't have the time to set my team so I had my crap players with a bad formation.
In the 2nd leg I set my good team , watch the game and won it with a higher G.D.