That is literally not true. In cases where male parent files for custody, he is very likely to get it. As in, in those cases there is slight statistic bias toward male (it is slight but still exist).
"One of every six custodial parents (17.5 percent)
were fathers." [1]
That means five of every six are mothers (83.3 percent)