Actually there are at least a couple of instances with software causing a crash:
https://www.forbes.com/sites/taylor...e-glitch-takes-down-an-airliner/#239f4fe87b1d
Sometimes it's really not a glitch so much as it's something the programmers simply didn't know about to include in the software's programming.
It is true pilots have to be trained for such, that only makes common sense.
There was another thing I saw too about how complex aircraft have become over time, that in itself a factor as well - You could say it goes back to training but there is also a limit to just how much a person can manage too, even with training.
And yes, I've worked on autos and electrically controlled vehicles and there are things like sensors that can fail/glitch due to wear, defect or whatever else causing such to occur.
Sensors whether they control speed, air/fuel mix, display readings on engine temps and so on will eventually fail, I mean there is a reason why replacement parts are available in the first place.
Can't tell you how many times I had to replace a speed sensor that tells the controller how much voltage to send to something such as the electric drive motor of a vehicle for example. If the computer/controller gets the wrong input from the sensor based on what actually required at that time then you've got a problem, regardless of root cause.
Try chasing an electric pallet jack (Walkie) through a store going full speed on it's own plowing through displays and such - It happened and I lived it.
Not to mention as point of fact we're always hearing about factory "Recalls" over issues, some electronic in nature which to an extent causes me to doubt the cause of those Camry's doing that as 100% the driver's fault everytime - Probrably 95% but not 100% as said.
If anything at all I've learned working with electricity over the years is that electricity itself can do some weird stuff and that includes systems such as these being affected.
Never take what it's "Supposed to do" for granted.