If Car B costs $X,XXX more than Car A for the sole reason that it's more deadly to everyone else outside of the car, then the purchasing envelope shifts for a large number of people.
[1]: https://www.tobaccofreekids.org/press-releases/2012_09_20_ny
I'm reading this as you preferring a moral solution rather than a technical one? You must feel pretty confident that the folks in charge of governing will always have priorities that align with your own.
I don't think any such law will ever come into effect. So I don't feel the need to be confident (or the opposite) with respect to my elected officials. It's all wishing.
Sin taxes, e.g. alcohol or tobacco tax, in part help pay for the social cost of those activities.
1) Smokers pay more in taxes through tobacco purchases.
2) Smokers die way earlier, so there are less social security payments and fewer medical expenses.