It is an undeniable fact that if Airbus had deleted the pilot from the flightdeck entirely, back in the 80s, none of these incidents would have occurred.
And in how many other incidents have pilots made a positive contribution? Not just in the technical aspects of operating the aircraft safely, but in the whole decision making process of things like medical diversions, security incidents etc. Let’s not forget that the job of a Captain is a legal responsibility of the safety of the aeroplane and all the people on it, not just safely flying from A-B. The human factor may sometimes be a weak link, but other times be a vital intervention in enhancing safety.