Gender is a social construct, biological sex is not.
Confusingly, we use the same binary terms for both.
There is nothing about males that make them more suited to be doctors. We also can see that in the demographics in some countries (e.g. the UK), there is a roughly equal balance of female doctors to male doctors.
Having mathematical ability is linked to intelligence, not sex.
dig trenches
carry heavy rucksacks
move weaponry and equipment by hand
survive hand-to-hand combat (granted, their odds are still limited to below 50%)