It may be worth reading the real versions of your myths again. Not the diet versions. Hercules was a family annihilator who saved his second (soon to be) wife from a horny centaur with ill intentions, upon which he promised to never cheat on her by telling her to poising his clothes with the centaur's blood. He forgot he promise, cheated and betrayed her. So, she followed through on their agreement. And when you read his trials he often too a shortcuts or acquired his 'success' through trickery and/or lies.
When reading the myths/stories of the bible (however you'd like to define them, since both example were religious in some aspect at the time) I don't ever remember any of them being written from the perspective of the 'woman'. sure some were about them, by not from their perspective. So this view has bias. Not to mention the many different versions, that are worded differently, which can/did change their meaning from one version to another.
So when writing remember there is always multiple sides of a situation, in which most people often believe that what they are doing is right or moral. And wither that action is, is a matter of perspective. Study the villans from Avatar Korra: What they did they, and terrible as it was, still thought they were in the right. When you look at spy family, both the parents are doing what they can to make a better tomorrow. even though some of the things are straight up murder. The villains of My Hero are people who were abandoned because no one knew how to help them.
If you are looking to avoid sexism, which I think it the point of your post, you need a solid rational as to why she did it. And why she did it to him. If it is simply because 'she woman' then you have issues....There are so many factors: Social expectations/status, brain washing/thought programing (Look at the reboot of Sherah for a great example), trauma based reactions, image control, scaping goating, and more.... All of these things are very interesting to write about, and this is the space where you can avoid your concern of sexism (If you do it right). Which ever direction you pick, you are making commentary on the situation so its good to be mindful of that and research deeply.