Swings-and-roundabouts Definition

noun
(idiomatic, UK) Gains and losses that offset each other.
If, in order to save money, you never buy a parking ticket, you are more likely to get fined, so it's all swings and roundabouts really.
Whether we pick up Mary first and then John or John first and then Mary is a matter of swings and roundabouts.
What you gain on the swings, you will lose on the roundabouts.
Wiktionary