With that said, cars are not being built to last any more for a while and it's become worse as time goes on. My car is from 2000 and while the engine is still in fantastic shape as I near 300,000 miles and wear-and-tear on the mechanical parts is only to be expected, the plastics on the interior (and in some other places) have aged horribly. It's only worse now with screens and apps that will be obsolete and irreplaceable within 10 years (you already see this happening with some early navigation systems). It's a shame as we seemed to hit an inflection point for longevity with engine quality and galvanized panels and then it all started getting worse again. Anyway, I digress...
Of course, some of the cars are made with obsolescence in mind, and they want your replacing every 3-5 years at most.. .. .. including issues with right to repair too.... or abilities to get quality and compatible replacement parts with some of the complications of some of the electronics.
one of my jeeps (the fun one) is over 25 years old and almost every part on it is still available to buy somewhere today. and i can still work on it (half the fun). i certainly cant say that to my daily driver.
but the daily driver is under 3 years old and likely will be replaced next year with something new again. and its not longevity of the mechanics, is the safety features. i want all that new tech, and that new tech will be old tech 3 years later.
consider like in the last 25+ years the only safety innovations were really antilock brakes and air bags. things like the emergency braking, 360 cameras, lane departure warnings etc safety things are year to year improvements now.