Anybody who is on the higher end of the intelligence scale has the ability to either be a competent doctor or software engineer.  I doubt that women flocking to medical science instead of computer science is a biologically determined preference.  It's probably more likely because women don't expect to face as much prejudice in medicine as they would in tech, and they would prefer not to have to deal with prejudice.  

Seriously, if Soh had made this argument 50 years ago and we looked at how few female doctors there were back then, we'd be drawing the conclusion that women aren't doctors because they don't naturally enjoy medicine, which is obviously false based on the fact they are currently more than half of medical students.