I'd recommend against just buying stock. If you are going to invest, diversify. Otherwise you are just gambling. Would you bet $40K on Blackjack or Poker?
The fact that you do not have a 401K (or presumably an IRA either) tells me that you should not be purchasing a Model Y. At most, if you...