If an assailant armed with a rifle or shotgun attacked a woman in a regular car, she wouldn't survive. The driverless car is actually safer in such a situation. If the driver is shot, the car isn't going anyplace. Where do you shoot a driverless car to disable it? And the human passenger can hit the floorboards.
A simple emergency program can be installed to make specific maneuvers. Unless the gunman hits something on the car that completely disables it, the car would perform the maneuver. In the same situation, the human driver has to be upright and able to see to drive. There is a very specific target that is in the same place in every vehicle in the US (with the exception of the very, very few RHD vehicles on the road.
Every time I have heard a car alarm I at least look that way. Most people do. If they see men attacking a woman, they will do something. Sometimes that something would include shooting the scum.