Bugs are a fact of life in development, nobody thinks software having any bugs at all is normal or that bugs are an irrefutable indicator of incompetence. That’s because anyone with any knowledge of Tyne subject has developed software and spent a huge part of that time fixing their own bugs.
The way you deal with that is through testing, defensive coding, making software maintainable, etc. You minimise the impact bugs have and try to ensure mistakes are recoverable. You also avoid counterproductive measures like punishing bug reporting, because that will just lead to cover ups and sweeping the problems under the rug.
The last thing we want to do is punish the reporting of medical errors. So yes I absolutely agree, and the way to do that is to build an honest and healthy culture around reporting of medical mistakes.
Medicine depends overwhelmingly more on manually applied procedures that would be automated, in a computer, as patients and staff manifestly are not. So, the same mistakes are repeated again and again. A software fix would correspond to changing a checklist.
Still, it would be no bad thing to use checklists for manual processes in software development, but I have never heard of any.