I tracked down the staff responsible for the episode on Twitter to ask them about it. I got a response from Emily Brundige, who was responsible for the story:
So in other words, the episode actually WASN’T a transgender metaphor, but whoever was in charge of marketing advertised it as such to give it more attention.
WOW.
Absolutely fucking outstanding! Not even Teen Titans Go stooped this low!