Spending a little more on your car up front could pay off in the long run, with new data showing the total cost of owning different cars over a six-year period.