You vote for the lesser of two evils because one of the two will win no matter what you do, there's no third option that you can take -to VERY clear- on election day.
If they both want the exact same anti-trans policies (unlikely, I'm not even sure what race that might be) you can find some of the other important policies that differentiate them.
Then you fight like hell to have better options next time in the other 364 days of the year (usually 2 or more years in between). Or if you don't think democracy works do whatever it is you want to do to get your way and, unironically, godspeed.
I think the most sickening line people pull is that voting like this for a candidate is some sort of moral reflection of you. It is literally taking elections more seriously than the voters they pretend to be above. It's just 20 minutes of a random day to try and get fewer bad results than the alternative.