Gender dysphoria (GD) is the condition where a person experiences discomfort or distress because their biological sex does not match with their gender identity. A person born female may identify as a male and a person born male may identify as a female.
There is some thinking that there is a link between ASD and GD. However, there is very little evidence and results are unclear. I have some thoughts on why there may be such a link: