I am willing to bet once you account for other things, such as geography, the effect goes away.
Look at the map at the end. It clearly shows women being higher percentage in areas that have better mortality rates for heart disease which are both heavily influenced by access (response time) to medical care and other socioeconomic factors
this is not perfect, but it shows that other factors are probably more likely to be the reason other than jumping to conclusions about which sex is a better doctor.
https://www.kff.org/other/state-indicator/medical-school-gra...