These are distinct. A transgender person can have any sexual orientation (e.g., gay, straight, bisexual, or asexual). Historical Context

People whose gender identity aligns with the sex assigned to them at birth.

Transgender and gender-diverse individuals have existed across many cultures for millennia. LGBTQ+ - NAMI

The LGBTQIA+ acronym represents a spectrum of sexual orientations and gender identities.