Indeed, there is no medically valid basis for attempting to prevent homosexuality, which is not an illness.
Such efforts may encourage family rejection and undermine self-esteem, connectedness, and caring, which are important protective factors against suicidal ideation and attempts.