Two motorcycles are coming towards the self-driving car, and the car is forced to crash into one of them. One of the motorcyclists is not wearing his helmet, and there's a definite chance of fatal injury if crashed into by a car. By not wearing his helmet, he is also breaking the law.
The other motorcyclist is wearing her helmet, and there's less of a chance of fatal injuries.
Should the self-driving car crash into the law-abiding motorcyclist who is doing everything right but with a less chance of fatal injuries, or into the irresponsible non-helmet wearing motorcyclist where injuries could be fatal?
That's the kind of scenarios they have to deal with. The technology however, works.