Chatbot outperforms physicians in clinical reasoning, but also underperforms against residents on many occasions