This is what people don't appreciate when quoting those statistics about how self-driving cars are safer than humans: when a human driver causes an accident, it was because that particular person did something wrong. When a self-driving car handles a situation wrongly that's a big issue, because all the self-driving cars run the same software.
On the other hand when a human driver causes an accident one driver learns a lesson (maybe). When a self driving car causes an accident all cars get to learn from it.
Humans don't have bugs. they may have disease, or mental troubles, but we're pretty good at assessing them. Thanks in part to their ability to communicate.
I'd argue that humans don't have bugs but their mental models of things do, mostly as a consequence of the fact a model's complexity increases with it's accuracy.