It is a real problem. It should be fairly obvious that it is. More realistically, It won't be a real time decision of hit this or that, it will be that it is programmed to do behavior X instead of Y. X is known to be 30% more likely to hit a pedestrian, but 10% less likely overall to be in any accident. Then you dramatize it by saying the car decided to hit a pedestrian instead of a car. Just substitute the behavior described in the story or some variation.