Evolutionary transcendence of the sexual condition
One of the human weaknesses is that we only desire what we cannot have or fear to lose. Some prescriptive philosophies aim at curtailing desire in its various forms, or even in its abstract expression. Most if not all of these attempts are doomed to failure. A glaring example is the sexual revolution that we've been experiencing since the 1960s.
But is desire to blame? Nature seems to have "invented" pleasure - and thus desire - to motivate us to survive. We desire what we need because it gives us pleasure - not because we know it's necessary for our survival. Sometimes, we desire it more than what we really need it for. We love food, and we're mostly OK with our love of food. We've learned, and are still learning, to tame that desire by balancing it with the survival utility of eating healthy food.
With regards to sex, we are in a paradoxical position. We are swinging heavily away from the sexual taboo formerly imposed by religions, at a time where the sexual "utility" - reproduction - is diminishing, given our current strain on world resources and the environment at large. Whereas the desire aspect is being emphasized - often times deliberately and for profit - the reproductive utility is being minimized.
The growth of homosexuality/bisexuality can be seen as a reaction to this situation. In that setup, desire can have free expression with the reproductivity kept arbitrarily low. Homosexuality is like an organic regulator of the rate of reproduction of a society. But is pansexuality a general answer? For one thing, it does not address the problem of long-term couple relationships, which regardless of gender suffers acutely from the clash between desire and reproduction (or lack thereof).
Asexuality is another solution. Indifference to sex solves the problem, but what is the hidden cost of losing the desire?
In the Left Hand of Darkness, Ursula Le Guin shows an alternate solution involving a hermaphroditic humanoid race where individuals select their gender during fertile periods. They are asexual otherwise.
In any case, the human race is following its evolutionary path, responding to environmental pressures and adapting to changing reality. Can we nudge it? Frank Herbert would strongly affirm it.