Did do the moral machine test, very easy, the car follow the trafic rules. Nobady want to ride a car who will run into the wall becuse a pedestrian stranger did try to cross the road then he did have red light (pedestrian fault)
Nobady can complaine if you the driver is in the process to drive over a pedestrian stranger who try to cross the road and have green light (the drivers fault) and the car take over and drive the car into the wall.
Of course the car shall try to minimize the damage like brake hard, call the hospital, before the impact, take the third option if possible, and maneuver away as long no third party is injured.
EDIT: This reasoning is built on that its fatall to drive into a wall, if it was "real" city traffic in low speed the car can brake and it is only a smale inconvenient to drive into a wall. Especially if the AI know that it will carch and can optimise the seat position, tensioning the seatbelt, release the airbag in the optimal time, hit the wall in the angel that minimize damage etc.