It depends on how long you plan to hold on to it.
I ran the numbers several times on the following three scenarios. My plan is to keep the car for three years: (Model 90D, with all options)
1) Buy car outright. Sell on the open market after three years
2) Buy car with Tesla financing, and get...