I believe the soul might have a preference for a gender.
Once a gender is assigned though, I think there is no going back in an incarnation.
Michael Newton describes some interesting revelations from his patients regardig gender in his book "the soul's journey".
He is a hypnotherapist that does past life regression and soul regression.
Personally, I experience my soul function to be entirely female in this incarnation..., and I have reason to believe from experiences I was assigned to
this life as a female soul to help fix a past life... and heal.
Ultimately the soul "might" be without any gender or beyond gender.
I do not think however that it would be good or "spiritual" to try to overcome it in this life by not transitioning.
In fact, I transition, even most of the time against my will, because I experience it as my spiritual duty to do so.
Love
Sibila