ChatGPT beat doctors at diagnosing medical conditions, study says