This may provide some useful insight.
207 crashes - human error; 82 crashes - weather conditions; 74 crashes - mechanical failures; 23 crashes - crime
And besides, what do you do at 30,000 feet with a planeload of people and an emergency and nobody in charge?
This is more a political problem - customer fears, unions, regulations, etc.
The marketing campaign writes itself!
We saw this on Air France - where the pilots' panic caused them to ignore readily available information that would have saved their lives.
On the whole of it, I'd rather the plane be flown by a computer, with a remote pilot jumping in for extreme edge cases.
Someone should be able to physically take some kind of control when the computer pilot breaks and the comm link to the remote pilot doesn't work.
On the other hand, I could see freighters (e.g. likes of FedEx fleet) fully automated in the near future (5 years? less?)
And if the pilot had nothing to do, how the heck would they not go mad from boredom?
A lot of the crashes are due to equipment failure. Take a look at the series "Aviation Disasters". A pilot is needed to figure out what is wrong, and to compensate to bring the airplane back. A computer program can't do that.
Such is far, far more complex and nuanced than dealing with a failure on a car. Just take Sully's landing on the Hudson after a flock of geese took out his engines. What computer program could have figured out why the engines failed, and what was possible for the airplane to do? Evaluate the weather conditions, and make the best choice of landing spot? Phooey.