AI beats doctors in diagnoses, but human judgment still key: study