This is no longer true and there seems to be a regression in the length of the lifespan of the car, due to cost of repairs and other factors.
The golden age for reliability was when we had significant manufacturing advancements and improvement in engine building with tighter tolerances but lack of all the tech.
The problem is now with the tech, and average car owner has yet to realize just how expensive that tech is. Windshield replacement used to be $150, this is no longer the case. Now, if you have radar cruise control, it needs calibration. Some cars have acoustic glass, which is more expensive.
The cars have sensors all over, minor crash results in thousands in damage. LED headlights are $2k a piece.
Even Tesla, imagine the car is now 10 years old, worth $10k, is someone going to buy a new battery for $10k? There is going to be better tech out there and faster charging times.
Additionally, look at cost of ownership of something like an S class, those things become cheaper than Accords after few years. The reason is that all that tech is hard to maintain and now some of it trickled down into the main stream cars.