How is it happening now?
If a car driver decides to save his hide and run over pedestrians, do they get prosecuted? I doubt it. Egoism is usually a valid defense. Cowardice is only a crime when facing the enemy.
Until humans solve the problem themselves, I don't see how we can expect cars to do it for us.