There is one other factor not discussed in the comments (yet).
Property tax.
Keeping an old car saves a ton in annual property tax as the value of old cars in relatively low. As property tax rates continue to rise the cost/benefit continues to shift to older vehicles.
The only property tax I pay is based on the value of my house.
There are jurisdictions (other than the DMV) that tax your CAR?