A comparative study of artificial intelligence and human doctors for the purpose of triage and diagnosis