If aviation today is indeed safer not because we have pilots but in spite of us having pilots. And the machines can be made better but the pilots cannot....then the day comes sooner when there will be no pilots. Because pilots will have by then lost mastery of their art while also losing full control of their aircraft by design of the aircraft makers.
For they have been judged by regulators and plane makers to be the weakest link.