Buying a car from the factory sounds expensive, but it can actually save you money. Here’s how to do it.