The best way to buy a car is from Tesla. Configure your car exactly as you want it online. See the exact price you will pay. When you're ready, click the button and put down a deposit using a credit card on their web site. When the car is delivered, pay the balance with an ACH transfer. Drive it home.
You certainly can do well with traditional dealers if you're prepared. It's just crazy that you even have to worry about it.