Cars are different nowadays (hopefully even more reliable), but the '95 Toyota Camry that my parents bought new in 1995 or 1996 lasted until I was done using it in college in 2011. Then my dad sold it for a chunk of cash. The only thing wrong with it was that the roof paint was gone to shit from the Florida sun. You could probably paint it, redo the ceiling fabric, and run it for another 10 years. They sunk a fair amount into it over the years, but nothing catastrophic -- no powertrain issues, no "fixing this AC will cost more than the car" issues. In the six years I drove it I think it needed about $300 of work (something about the steering or suspension).

There are lots of Camry from 2008 to 2017 which has paint delamination issue. Ours is from 2012 but it only started getting noticeably worse near the end of the warranty period and I never heard about it because it was during the pandemic and our dealer went out of business. Toyota didn't publicize the issue till the end.