It's quite common to have a preference serafina. And as you recognise yourself, it is often borne of life experiences, difficult relationships and a fear that you might recreate a traumatic relationship. Your head tells you that it shouldn't matter, but something inside you makes you feel that way.
What you realise once you have a baby of the gender you feared is that gender is a single, irrefutable fact. It does not inform or decide anything about the child you have. The quirks of personality, the things they like and dislike, the way you feel about them is in the end, nothing to do with their gender.
Please don't be hard on yourself but believe me that if you are blessed with a son, you will love him as your child with all the unique possibilities he will bring.
There's no point telling people that they are wrong to have a preference or to fear a certain outcome, because you don't know what myriad experiences have brought them to that point. It's not a simple whim. Likewise, serafina, it's good to be mindful that while it's normal to feel the way you do, the way you phrase it can be hurtful to some people. I know you did not mean to be hurtful at all and you were just being honest. You do not need to feel ashamed of this.
I have a girl. When pregnant, I did want a boy if I'm honest. I was very worried about recreating my relationship with my Mum (fraught) and felt comfortable with the idea of a boy. Of course, like most people, the child I have is the one I am meant to. And if I were blessed enough to have a second, I wouldn't mind either way.