A latch is like two bolts and 20 minutes. A sensor is about 4 hours of trying to figure out why the fuck it isn't working just to figure out that you need to also replace the fuses and a relay thats for some reason behind the console.
I'm at a lost for words over how extremist you're being at the moment. The frunk isn't going to fly off, it may fly up and shatter the windshield, but it won't fly off. I'm not even entirely sure it would fly up with it being entirely stainless steel.
And even if it does, it would probably be the least dangerous thing on the road. If you want to be extremist, every car should have a breathalyzer, eye sensors to make sure you're not on your phone or falling asleep, and you should have to renew your license with a driven test every other year.
In fact, cars shoudnt even exist. At any point, someone could drive into a crowd and there's no limitors to prevent that.