From GPT to GP? Testing ChatGPT's medical competence