To start with, honestly, most cars won’t do 500thou without major repair costs. By then, you’ve potentially replaced most of the consumable parts within the entire driveline.
This topic really requires the input of variables such as the cos of an unreliable car tow costs, taxis while it’s being repaired, etc.
Along with the aspect of, can you fix shit? Most people can’t.
And do you have the time to fix shit? Most people don’t.
For most people, their time is more valuable than the money they think they’re saving buying a shitbox. Read the theoretical depreciation curve of a car, buy at the dip with the lowest kms and full service history, and you’ll generally be okay.