Comment by arnsholt
In my jurisdiction, damages from car crashes are strict liability, so you would in fact be legally liable. Limited to ~10 million USD for damages to objects, no limit for damages to persons. Of course the manufacturing defect would give you a credible claim against the manufacturer, but that's a separate matter. Which is why automotive liability insurance is mandatory.
Doesn't this answer the question then? Dodgy breaks or dodgy AI, it's on you if your car cleans out someone crossing the road.