you are thinking of sex, and yes I agree.
There are things only a biologically male can do and things only a biologically female can do.
GENDER IS NOT SEX.
Gender is whatever you identify as, it's the feeling inside. Scarf identifies as a girl so she is a girl, even if from a biological standpoint she's still male.