Um. When I sold the old Prius, after checking on the internet, literally wrote one up with a pen and some lined paper. One second.
So, when you put money down on the car, you likely created a Tesla Account, complete with a log in. On the dashboard for that account, there should be an icon for the car you're buying, with a VIN number under the picture of the car, and a link that says, "manage". Click on the "manage" link and there should be web page with a picture of the car and a link for "Documents". Click on the Documents link. On my account (and, yeah, I've already bought the car, so I'm not sure about this) there should be an "Order Agreement". I believe that counts as the bill of sale.
On my page, there's also a scan of the Proof of Insurance for the car, which I'm positive got emailed to me by my insurance agent, and subsequently sent to Tesla so they could do the title and such. But, if you're going to get the registration, plates, and title in MD, not sure you need to do that with Tesla. Again, suggest calling the MD DMV, or checking their web site.
I vaguely remember urging the two little chicks buying my car to visit the MA DMV and having checked it myself; there were instructions on Exactly What To Do for buyers when buying a car that was from out of state. (At least one of the two chicks was of the opinion that he would simply drive it off with my plates on the car; I disabused him of the notion. He did show up with the correct plates and we swapped plates in my driveway.)