This seems like a no-brainer to me. If they ask for your gender, tell them what it is.
What did I miss?
Also, nobody cares what your gender marker says except you. If it’s ever important, they won’t rely on your passport to determine it anyway. Never in my life has anyone said ,”Well yeah, but what does it say on your passport?”
I don’t know why passports even have gender markers.