It seems likely to me that doctors whose job is almost or entirely about making diagnoses and prescribing treatments won't be able to keep up in the long run, where those who are more patient facing will still be around even after AI is better than us at just about everything.
If I were picking a specialty now, I'd go with pediatrics or psychiatry over something like oncology.