To produce a BOY the male has to donate his Y chromosome. It's not rocket science.
The winning sperm decides.