Like I indicated, as in captivity with the lack of an opposite sex, animals can freak out with each other (as Big Joe from Kelly’s Heroes would put it). But will they do that in the wild with the opposite sex present? Not that I’ve heard. Homosexuality is an aberration at best, no more intended by nature or evolution than are mutations. And like a mutation, has no purpose, and is with very rare exception harmful.
Look up bonobo chimpanzees.