I mean, if you look at what's on the road, you'll see a lot of cars that are more expensive than what could do the same job. Some people even pay extra for fancy wheels, sunroofs, bigger engines (which cost more in fuel), cosmetic modifications, etc.
So either we need to judge all vehicles purely on economics, or we should admit that car buyers are looking for other things than purely functional transportation at the lowest cost.