You’d be surprised. Check AliExpress. There are aftermarket units built to fit perfectly into every dumb auto fascia they’ve come up with to prevent it. A simple harness adapted is usually sufficient to restore steering wheel controls etc.
I’ve heard of a couple of vehicles where you simply cannot replace the media centre because it doubles as climate control input etc but the simple answer is: refuse to buy those vehicles.
I know all that, the point is modern infotainments do way more than just play music. Look, I wish it was different, but most cars built today have controls in the infotainment that you can’t have anywhere else. Like very specific settings for interior and exterior lighting, consumption metrics, creature comforts, just to name a few. That’s not a simple case of getting the wires correctly installed like it was before. And good luck finding just the right car with a dumb head unit, even simple cars today are fitted with this stuff.