What you shared may be your personal opinion. As a woman, I see it a little differently.
In many cases, when a man goes through a breakup, he may recover more quickly because he often has support from family and society, and people generally do not judge him as harshly. On the other hand, for many women, especially after a marriage or a serious relationship ends, the emotional and social challenges can be much greater.
However, I don't think it is only about gender. The most important factor is how deeply a person was emotionally invested in the relationship. Some men and some women move on quickly because they do not take the breakup very personally. Others, regardless of whether they are men or women, take it very seriously and suffer deeply.
So, in my opinion, the pain of a breakup is not purely gender-based. It depends on the individual's emotional attachment, personality, support system, and the circumstances of the breakup.