I'm OK with "preference" just so long as it's separated from acting on the preference. So much, people want to conflate the two things, and say that "homosexual" or "gay" means both the "preference" and the action (which is a choice).
Whereas I think it can be fair to say that a person is "gay" but is celibate. By their actions, or lack thereof, you might contend that they're not "gay" or "homosexual", but they would still have the "preference". As you say, some of that "preference" is explained by being raped or otherwise abused as children, that's been statistically verified, but not all with such "preference" has that kind of history, so it doesn't explain everything about the phenomenon.
Very nearly all male homosexuals do have that kind of history. If you executed convicted child molesters, rather than allowing them to adopt their victims, you'd have almost no homosexuals in your society within a generation.
It is quite different for the female version of the same perversion but they make up less than half (probably closer to one quarter to one third) of the homo community and they more often do not persist in the behavior long term. When they do, they tend to beat the living daylights our of each other, by the way. Intimate partner violence (IPV) among lesbian couples is through the roof.
44% of lesbians report experiencing rape, physical violence, or stalking by an intimate partner, compared to 35% of straight women. This suggests that lesbian couples are disproportionately impacted by IPV(
Williams Institute)(
HRC).
Moreover, a study by the Human Rights Campaign highlights that 18% of LGBTQ respondents reported experiencing physical dating violence, while only 7% of non-LGBTQ individuals reported the same(
HRC). The data also indicates that 61% of bisexual women experience similar forms of violence(
HRC).