There was a case here recently where a car (neither a Tesla nor a Pinto) caught fire after an accident that did not involve another vehicle. The first guy to arrive on the scene found that the car was completely engulfed in flames but the driver was still alive, although he was on fire and badly burnt. Since the guy who happened to be the first on the scene could not get close enough to the burning car to open a door or break a window without sustaining injuries himself should he have tried to pull the driver from the burning vehicle, he shot the driver in the head through the windscreen to save him from more pain.
He was arrested and charged with murder after reporting his actions when the first emergency personnel arrived, but the judge ordered that the case be withdrawn and thrown out of court based on dashcam evidence that showed the "callous murderer, according to some media) trying to get close enough to the burning car to render assistance, but could not without getting burned himself.
The judge called the man a "compassionate soul", and ordered the State to pay for the man's therapy and legal costs. The State did not appeal the ruling.