This is kind of a weird take: I was reading about the Therac 25 (radiation therapy machine that killed a few people because of software bugs), and one of the reasons why they were so confident it was going to work is that software isn't vulnerable to two classes of 'bugs' that analog devices suffer from: wear, and manufacturing defects.
I mean, they turned out to be wrong, but they have a point: physical devices are subject to entire categories of bugs that software can be reliably proofed against. All worm screws will ultimately fail, while software can (if done correctly) run forever. All manufactured devices are unique and have unique defects. Software can be reproduced without any defects whatsoever.