well, in older times there was "illegal" formations.
When someone had an "illegal" formation, the ball possession was 20-80 against.
Sometimes when there were two illegal formations, the penalty was for the team which was more "illegal"
(for example for the team which didn't have a GK in his position than the other team which had a ST for DC).
So, I believe that in a case like this, the team which is closer to the rules (for example has 10 players in the filed instead of 9 of oppo), will win the game in papers.