While your calculation is correct, you do not include a rather important fact. Owning a car which you intend to sell in a couple years is a risk. Even though the cost of ownership of a $100k car and $40k car might not be much, it will turn out to be significant at the moment you crash it.
Which will then inevitably lose you the full value.