"For example when faced with the decision to crash into a pedestrian or another vehicle carrying a family."
Ethical human traveling 60kph when pedestrian and family in car simultaneously appear as obstacles 30 meters ahead..."OMG, OMG, I'm gonna hit one or the other! The car is better protected, but there are more people in the car. What did Spock say about the needs of the one? OMG " BANG!
Robot driver in same situation... "Obstacles detected, apply maximum ABS braking". Car stops 8 meters short of collision.
For every "ethical" dilemma a human decides correctly, I would guess there are 1000 fatalities caused by humans just being lousy at driving.
Oh, and what is the right ethical decision to make when deciding whether to hit a single pedestrian or a family in a car?