I don't think you wanting a child of a certain sex is actually the issue here, I think the actual issue is you've fixated on a single ideal of your future and have visualised it to such a point that there's no divination from it, not even for circumstances outside your control (eg: sex of the child). I do this too, but I'm a diagnosed sufferer of anxiety and this is one of the "clues" I get that I'm about to have a bad patch.
Do you suffer with anxiety, OP?
If not, then being fixated this strongly on one version of the future isn't conducive to a happy home life for any child, what if that child doesn't meet your expectations?
If your concern is for the child not having a male role model, there's research to suggest that both male and female children thrive in environments with both single sex parents and a present parent of both sexes equally and there is no determinable developmental difference either emotionally or cognitively between the two. The sex of the present parents has no baring on the ability of the child to thrive.
I think, however that you know this already, OP.
I mean this very kindly, you need to address your fixation on this ideal of the future you have before thinking about having a child, and this would very much begin with recognizing that this level of fixation is not normal and that it could very well be linked to an underlying mental health issue.
As gently as I can say this OP, get yourself some help 