In the real world, it depends on the situation.
In this particular situation, if the car was driving so fast it does not have time to break for, the fault most likely falls to the manufacturer for writing software that defaults to reckless driving in an urban environment, and inmediately after some of the fault might fall to the city or the inspectors that approved the manufacturer if it is concluded that the approval was given either knowing the software was like this, or failing to account for it in their testing procedure.
If there was a mapping error, it depends on the map provider's license to the car manufacturer.
All other situations (car breaking down due to lack of maintenance, breaking down unexpectedly, pedestrian making an illegal move, etc,...) are already handled by current law (obligatory "some exceptions may apply").