> People are male or female by genetics
Some (most) people. As with most things, the whole truth is not that simple.
Regardless, "sex" and "gender" are also not the same (though they're usually closely related). There's nothing about having a Y chromosome that makes one have short fingernails, short hair, unable to wear dresses or high heels or paint one's fingernails.