Many gun companies have flirted with smart gun technology. SW, Colt and Taurus tried. Several things - there was a real concern about police and civilians being disarmed as well as kids getting guns.
However, the electronic tech solutions never worked well such that police would use them. The only one that came close was the magnetic rings for revolvers. It did work pretty well according to testers but you had to wear the ring, it was a revolver, etc.
Gun companies also did some marketing research and found that there was an untapped market for handgun purchasers who would buy one - if it were a safe gun - assuming it worked.
Another problem was laws like NJ that would have mandated all guns be such. Many folks have no problem with a smart gun as a product option if it was not mandated. Now, if such existed - the risk of lawsuits is a problem if you didn't have one and something bad happened.
It might be similar to the lawsuits that occurred when non drop safe Ruger revolvers shot people. In one suit it was shown that the user knew of the problem could have corrected it but didn't. The jury found for Ruger but Ruger still paid him a bit to stop an appeal.
Similarly, the drop and bang problems of some Sigs and CZs (as in the recent death of a range officer near Rochester NY) may lead to suits.
Thus, what determines what makes a gun safe? It should survive a drop, it would seem. Should it be disabled if picked up by a nonauthorized user? Not being a lawyer, I supposed there is the technical liability issue and perhaps an antigun agenda using such a suit.
We will have to see how this plays out.
The drunk driving question is interesting as it has been proposed and AI cars that shut you down if you drive erratically aren't far off.