It is not possible to make a car free from blame if it is judged by the standards of a human driver. There are ambiguous situations. There are situations where the car doesn’t have enough information to decide.
If a robot hits a patch of black ice and slides into a pedestrian, I’m betting the robot is liable. Being at fault does not mean you were designed to destroy humanity. It means the law decided you had to pay the other guy’s expenses.