While I agree with you that you should get your money back if they are not delivering your car to your satisfaction, before you call your credit card company, please contact Tesla and ask for your money back. You should extend this courtesy to any merchant you do business with and calling the credit card company should be an option of last resort of the merchant is not helping with a reasonable resolution.
Tesla does say the deposit is nonrefundable so if you call your credit card company, they may try to hold you to that. It is far better to try and reach a resolution contacting Tesla directly.
I believe so far we have yet to hear from anyone who was unable to get their deposit back when Tesla did not deliver a car to their satisfaction. You may get push back but if you insist, I bet they will give your deposit back.
Always try being nice first when seeking a resolution...