We owned one that barely made it to 120k miles (Matrix, which was essentially a hatchback Corolla) and would have required more money to keep it running than the vehicle was worth.
The weird thing about that is that the Pontiac version (Vibe) was built in Fremont, CA on the same assembly line as the Corolla, but the Matrix was built in Ontario. So you actually got the better car if you went with the GM badge!
(And yes, that Fremont factory that built the Corolla is now the Tesla factory)
My dad bought a corolla in early '90s, which he used for over 20 years without significant issues. We eventually sold it and got a new car mainly because of the much better safety measures in modern vehicles.