Generally, you should be thinking in a utlitarian way or "what is objectively better," because a candidate with homophobic views can still have policy/views helpful to another minority or something general in the population that will even help the lbtgq+etc. community more than whatever they have against them.