Middle class perspective: if you can buy a car for cash, but you can get a good interest rate on a loan, you may be better off taking the loan. The opportunity cost of having cash sunk into the car can be greater than your financing costs.
That's a pretty big chunk of change to spend to boost your credit record
It can still make sense to hang on to the cash if you don't otherwise have a cash reserve.