Even at age 9 or 10, children can articulate, very clearly, the ways in which gender constrains and defines their experiences; even at age 9 or 10, children are aware that their genitals organize their lives.
I'm surprised by this age. I know that from working in a preschool and after school, many times I've encountered a child as young as four or five knowing the differences.