That's bad luck! But... if you'll never buy from a manufacturer because one of their models had a corrosion issue or drivetrain issue you'd never be able to buy a car ever again?
I'm not gonna comment on the Mercedes because while they definitely have earned their reputation for being expensive in old age I'm not familiar enough with them to pass a value judgement.