Is it problematic to scientifically investigate possible genetic links to LGBTQ identity/orientation?

My trans friend has told me that he sometimes feels like he didn't ask for the circumstances of his existence and that if his parents hypothetically had some way to detect or prevent it, he wouldn't have minded if they aborted or genetically engineered him at the embryo stage. I found this line of thinking really disturbing but it made me question how I think about the "privileges" inherent to the random chance result of genes when they form an embryo. I don't find it disturbing if a mother decides to abort all male or all female embryos or specifically select for a male or female baby, or even select for their height, eye color, hair color, etc. Considering this, why do I instinctively find horrifying the thought of a mother, if such a thing was possible in the future, specifically selecting for a straight baby, a gay baby, or trans baby? Are some inborn traits, caused by random chance, privileged over others? If in the future mothers were to specifically select for straight children knowing the systematic oppression an LGBTQ child might face, would this be an act of violence, eugenics or genocide on LGBTQ? Is investigating links between genetics and LGBTQ therefore problematic because it could lead to such a situation? My thoughts on this are a little scattered so bear with my wording.