When you randomly need to see a medic, you likely end up seeing either a male or a female doctor purely by chance. You can bypass the randomness of whoever sees you by pre-selecting your doctor's gender ahead of time.
But does it matter if the doctor is male or female in terms of your health outcomes? Some think so, others aren't so convinced.