The problem with current model cars (any of them, really) is that the cost to do a major repair is usually a significant portion of the value of the car, as the labour is the real expense. Even cars are throwaway now if something major goes wrong. The world just doesn't make things the way they used to. I threw out a late 90s Holden Vectra as the ECU died and a new one was quoted as $4k+ in 2008, and the car had only cost me just over $6k fully working 2 years earlier, and was worth less than $4k fully working by then, so not with repairing.
The more expensive the car to replace, the more it's worth 'paying more than the cost of replacement' on a repair if you know the service history, but otherwise, cars are sadly throwaway. i.e. my current Polo GTI is probably only worth $7k but I spent about $2.5k on repairs last year as I've owned it since new and it'd be $30k to replace with a new equivalent to avoid the risk of the same issue happening on the replacement.
All of which is to say, any second hand car comes with the risk of repairs. I didn't learn until my 30s that the cost of the car cannot max out your budget - you need to keep some buffer cash for the inevitable repairs, let alone servicing! Expecting to spend money on maintenance, indeed budgeting for it, takes the sting out of it.