The New Testament is largely a modernist, universalist implement over the Torah and contains the stories of rebellious Jews that wanted to spread an ethnic religion to other peoples and decided to modify it to make it universalist in scope.
Islam came 600 years later and essentially "returned to tradition", while performing a sneaky implicit replacement of the initial "chosen people", i.e. Jews, with Muslims, i.e. anyone that accepted the new version of desert monotheism.
It's natural to find passages that sound progressive in the NT, all the original stuff is in the OT.
Needless to say trans was not a thing.
Needless to say transitioning is a medical, modern social issue, not religious.
Needless to say that there are males and females and gender is inner feelings, which guess what?
Are often delusional.
Ignore gender. Sex matters and can be measured, gender cannot, end of story, nobody cares what you think/feel you are, you nerds.