To some extent its both a choice and something ur born with.
like wat Octo said u can't choose wat ur turned on by but u can choose to either accept being gay or u can ignore it and try out being straight and possibly change ur sexual prefrences.
P.S the tests that were taken to prove that being gay comes from birth were actually marked inconclusive and its still under investigation
mean people suck
feel free to pm me anytime