Mum told me yesterday that when B, my little sister (Mum's fourth daughter) was born by emergency C-section, Mum woke up to a nurse saying sadly "Oh, you had another girl". Mum thought from her tone that something had gone horribly wrong--like B dying!--but no, the nurse was just sad that she wasn't a boy!
Mum went on to have two more daughters, incidentally.
Yes, we've gotten comments...
I have to say, though, it never offended me as a kid to hear the 'trying for a boy' comments. I think it never occurred to me to feel threatened--our family was close, and I had the natural childhood huge ego which knew my parents couldn't possibly have gotten a better deal than ME. Naturally.
So I just thought the commenters were a fraction stupid... no major psychological harm done.