If you go to remote tribes in the Amazon, you'll find a lot of things modern day society tries to distance itself from, like kidnapping women and beating them until they're docile. You have literally no idea what those people were to think of themselves, given the freedom to do so. Ancient is not the same as good.
> Here's some other "ancient" stuff, that can be used to say the opposite of your point
Yes, native Americans had gay people too, and slightly varying ideas of division of labour. I'm not sure how you think this proves the notion that distinguishing gender and sex is or was some dominant mode of thought.
Just look up transgender history on Wikipedia, literally the opening paragraph says these concepts were invented in the 1950s.
https://en.wikipedia.org/wiki/Yanomami_women
Here's some other "ancient" stuff, that can be used to say the opposite of your point: https://en.wikipedia.org/wiki/Two-spirit#Traditional_Indigen...