Man vs Machine conundrum at work again
Many times, a well-designed machine can do what The Human does as well or better. They don't get tired or distracted, etc. However, this usually is limited to well-established routines. When the wheels fall off, the machines can't figure out what to do.
Experienced human pilots have performed some amazing feats to save crippled aircraft and the hundreds of passengers aboard. Those years of training and experience coupled with the ability to assess and react to a situation are far beyond the abilities of the best computer flight controls. It's going to be a long time before we can safely exclude the human pilot.
And yet, the vast majority of aircraft incidents are due to pilot error! It's a huge challenge to balance the strengths and limitations of Men and Machines. Maybe one day we'll get that right, or finally develop a smart computer.