Star Trek is a huge exception, but It's strange how absent the concept of gender normally is from scifi. Things that are perfectly normal in scifi include cybernetic enhancements, genetic engineering, etc., but god forbid anyone use technology to change their gender. And if technology really existed to instantly and effortlessly change gender, I suspect almost everyone would be doing it because that's exactly what happens in social VR apps like VRChat.
Things that are perfectly normal in scifi include cybernetic enhancements, genetic engineering, etc., but god forbid anyone use technology to change their gender.
The average "Singularity(tm)" prophet on /r/Futurology on wants to be an immortal swarm of nanobots that is colonizing the galaxy but is weirded out and scared of trans people.
All the worst nerds on earth terrified that my bedicked cockspider body was not amab because I forgot that was a requirement on nanotech 3d printer machine.
The Culture series is another big exception, combining both readily accessible and extremely fast transitioning tech with the understanding that people still have their own identity and preferred presentation (that can also get complicated).
There's a documentary on DS9 called What You Leave Behind that touches on some of the behind the scenes of the LGBT aspects of he show. Apparently they had a hell of a time getting some of the Dax stuff past the studio execs and show runners. The writers and actors also wanted Bashir and Garak to have an explicitly gay relationship but that was also forbidden.
I forget the fallout of it but in Ghost in the Shell SAC Bato confronts Kusanagi on why she doesn't switch to a male cyborg for it's greater physical prowess and I think he gets put in his place. Iirc I think the conversation could have been handled better but at least it exists!
There's also the implication of her merging with the purely digital entity at the end of the original movie.
There's also theories that the Major's original meat space is so wrapped in mystery but some clues suggest AMAB.
All that to say, a lot, but not all, Ghost in the Shell series are worth some time!