One could certainly argue that if Hester Prynne were a man, she would not have had to endure such public humiliation and social isolation as the result of her sin.
An obvious reason for this is that if she were a man, Hester would never have been able to get pregnant as the result of an extramarital affair. Therefore, like Dimmesdale, Hester could have kept the sin a secret from everyone without the risk of being exposed by her own body.
Alternatively, if Hester were a man and was outed to the community as an adulterer, I still think the punishment would have been less severe. The sexual double standard existed even during the Puritan days; women who had extramarital affairs were considered lustful temptresses, and the men with whom they engaged in these relationships were often thought of as victims of the seductress's womanly wiles. As a result, men who were accused of adultery would be pitied as well as judged.
This is proven after Dimmesdale exposes himself as Pearl's father in front of the townspeople just prior to his death. Although the people are shocked, they also feel sorry for him. The text describes the crowd's reaction in the following quote:
The multitude, silent till then, broke out in a strange, deep voice of awe and wonder, which could not as yet find utterance, save in this murmur that rolled so heavily after the departed spirit.
In the following chapter, the narrator explains how certain witnesses to Dimmesdale's death insist that Dimmesdale only made his death a "parable," and he was in no way possibly guilty of the adultery of which he proclaimed he was. This reaction further cements the notion that men in this society were not blamed as much as women. The lengths to which one could rationalize Dimmesdale's innocence is predicated on his respected position as a prominent man in the community.