This is a false analogy. Deaths from car accidents are unavoidable because driving a car is a societal requirement for many careers or needs. In the cases where those deaths were avoidable such as due to drunk driving, we rightfully penalize and criminalize people that put others at an unnecessary risk.
Deaths from people refusing to vaccinate are an entirely avoidable issue. They choose not to vaccinate and in turn threaten the lives of those around them with gross negligence, especially those that are medically unable to be vaccinated. Which is exactly what being anti-vaxx means: it means being in favor of negligence that can and does result in many avoidable deaths of people without other choice.