They really need psychiatric help. A delusion is a fixed false belief. If you are biologically male and believe you are female, then you are delusional and same for if you are biologically female and believe you are msle. If you are exhibiting delusions and cannot distinguish reality, then yes it would seem you are unfit to serve