If there’s no power how does an electronic lock open?
They tell you to keep the doors open so that you don't lock yourself out. But they also tell you what to do if you do: https://blog.tesbros.com/jumpstart-your-12v-battery/
Not defending TG or EVs, but people should read their owner's manuals and do simple internet searches on basic maintenance and troubleshooting, regardless of vehicle.
I myself wouldn't buy an EV right now. Maybe in 30 years if the laws of physics magically changes or unobtanium becomes widely available.