-
Mercedes already said they have taken the decision that their software would place driver safety over pedestrian in such a situation and would avoid the lorry at the cost of the pedestrian. They got heavily criticized for that stance but I think their only mistake was admitting it, can't imagine any manufacturer admitting they are putting driver safety second. This can obviously be appropriately legislated for however if you have a competent regulator.
What happens when a situation arises where the car has to crash, but can either hit the child who has run into the road, or crash into a lorry, almost certainly seriously injuring, and possibly killing, the occupants of the car? The ethics of that one would trouble everyone, not least the engineers writing the algorithm which their management demand saves the car occupants.