I mostly drive slightly bigger cars. So while I'm fairly sure the Japanese will beat the A-class in just about every metric, but they don't really have a good answer for C-class and above - outside of maybe Lexus, but a 3 year old Lexus is way more expensive than a 3 year old Mercedes. I buy my cars after a few years of depreciation, so I actually like the fact that German cars depreciate a lot in their first few years. But then Lexus doesn't really have good diesel engines like the Germans do, so fuel consumption differences alone will add up a lot.
To be clear, I don't really need or want any of the fancy features (aside from Carplay, which is starting to be ubiquitous), but just the suspension setup alone between a C-class and a Toyota Camry is vastly different. The 9 speed auto box is also excellent, to the point that I don't even feel like I'm driving a tiny 2 liter diesel with only 190HP.