The origin of this expression is interesting. The first appearance seems to be in 1802:
"The South" and "The North" are not bridge terms, as one might tell from the reference to the House of Representatives. The expression means that you cannot lose regardless and such was the case here:

East opened 1S, fairly marginal, but as a friend from the WLGBC is fond of saying, "I rate a stiff queen very highly!". West responded 3NT which this pair play as a balanced 3-card raise, quite sensible methods, and East has a normal removal to 4S. With a horrible lead to choose from Paul Thornton, who takes his sobriquet from the North Yorkshire village of Bentham, rather than the English philosopher Jeremy Bentham, led the ten of diamonds. Now it costs nothing to run this round to the queen. If, as is very likely, North wins with the king, you can later throw a heart loser on the ace of diamonds, and will still make the contract if the spade finesse is right, or if you can find a doubleton ace of clubs somewhere. When the queen wins, you can still throw a loser on the ace of diamonds, and are now cold. Some Souths led a club, which is also fraught as Jxxx is very dangerous, but if North puts in the ten, declarer should go down, but about half the field made game here.
Heads You Win–Tails I Lose is a song written by Brian Wilson and Gary Usher for the American rock band The Beach Boys. It was released on their 1962 album Surfin' Safari.
After Ken rose with the ace of diamonds, there was no way home: As the lyrics of the song said:
Heads you win, tails I lose
I can't get the upper hand no matter what I do
You'll always be the winner and I'll always be the fool
Heads you win, tails I lose