AI has been applied to brain scans and is able to identify male and female brains with 90% accuracy...
I have only been saying this about brain structure for YEARS, Uncle G. THANK you for finally finding something I've been saying all along. Do the following search: "homosexual + brain scan" using your favorite search engine. You will find a LOT of articles - including a lot of attempted refutation by religious apologists.
The first study I found on this subject literally a couple of DECADES ago - an article written sometime in the 1990s - was from a U.K. medical research team experimenting with the (then) newly discovered Positron Emission Tomography scanner, a device to allow fine-structure analysis of a still-living human brain. This was revolutionary in the 1990s, because they discovered - as noted in your link - that the human brain has discernible differences between male and female internal structures, and now even AI can correlate this finding to issues in human behavior. The authors talk about cognitive profiles, a fancy way of saying "behavior and thought patterns." These structural differences have behavioral consequences.
The principle is simple. You have genetically determined external sex characteristics including sex organs. However, it IS possible for the brain to have internal structure inconsistent with the external structures. When that happens, you have gender dysphoria to some degree. The original study in the 1990s even found those cases where the "plumbing" and the "wiring" didn't match, and invariably in THEIR study, such people were one type or another of homosexuals.
It is commonplace among the gay people I have known that they say "It is like I was born into the wrong body." Their brain - which is the strongest sex organ - says something that the rest of the body DOESN'T say, and that issue is at the root of gender dysphoria.
So many folks focus on gay "choices" but ALWAYS offer the incorrect list of choices. Gay critics talk about their CHOICE to be gay - but if the brain says you like men and your body says you ARE a man, remember - the BRAIN is the strongest sex organ. When it says GO, you go. When it says NO, you and your partner might as well bring out a game of Tiddleywinks. Priests and ministers decry the "gay life style" and the choice to have sexual relations with another gay person, instead of having sex with someone more compatible with your body. But the REAL choice is always and only that you either engage in sex or live a celibate lifestyle. You don't get to choose what turns you on. AND as to these differences at the internal structure levels of the brain, there is NO CONSCIOUS CHOICE YOU CAN MAKE that will cause the brain to develop a particular structure. The brain structures start forming in the womb at about 6 weeks and finish basic "architecture" at about 6 months. What choices can a fetus make to be gay or straight? (Rhetorical... answer is "No choices can be made by the fetus at the time its brain structure is still forming.")
My own step-daughter suffered outright rejection by her biological father because she is gay. My best friend from college days had to suffer through living a closeted lifestyle until she could retire from teaching. A friend lost his job because someone accused him of making a pass in an aggressively gay manner, which was a joke given that my friend was the LEAST aggressive person your could ever meet. Sorry if that got long-winded, but I've seen too many of my gay friends suffer persecution and condemnation for something that WASN'T THEIR CHOICE.