Autonomous cars wouldn't speed and they are always paying attention. Maybe you could argue that it happened because the other driver was drunk or for some other reason swerved into your lane but this is still an incredibly niche situation and if it does happen just sue that guy. The vast majority of car-to-car accidents happen when both drivers are irresponsible. Autonomous cars will significantly reduce accident rates just by following the rules of traffic and being constantly aware.
The whole who should be sued thing is asinine, just have a national insurance fund for it or whatever. Cheaper than all the accidents it prevents.
There was an article here serveral weeks ago about how in some self driving cars the brakes can be pre-loaded and can be used much quicker than a human could, reaction times aside.
A machine also can't be held responsible.
Who do the surviving relatives of the crush pedestrian sue? No longer the driver i guess