I don't approve of the fact a woman would generally suffer harsher professional consequences than a man in a kind of 'workplace affair' scenario. But...
She's the most senior HR person - in my view it is worse she acted this way than him and she deserves all the professional consequences. He does too. The difference is, he'll open a new tech business in 2 months' time and still be a shit CEO - by all accounts I've read today, whereas nobody will want to hire her (but she has herself to blame IMO, her actions were just plain stupid). I suppose maybe he'll hire her & they'll live a long happy life, as will their exes - without them, and rich. There will be a happy ending, after all.