I am not suggesting that the computer should replace the pilot. I am suggesting that the computer should be smarter. Maybe replace the first officer. Then again maybe not.
You have written about "the pilot". This seems to be a very common misconception. Are you aware that there are
two fully qualified pilots on a commercial passenger airliner? One is designated the Captain, the other is designated the First Officer. And that both pilots have the same flying licence and therefore have passed all the same flying tests? (The Captain has passed more tests than the F/O to become a Captain, but flyingwise they are the same. It's not one pilot and a secretary.)
Why do you want to only have one pilot? There can be only one reason - to save money. Why do you want to save money? Will you receive the extra profits or get cheaper air travel? Is that sensible?