A study found that AI is successful at finding red flags, while human doctors are better at understanding patients.