I think this depends on number and ages of children. Type of job and hours with commute. And what sort of support you get.
If you have a partner who really pulls their weight with the childcare, night wakings, mental load, the default parenting etc., good childcare in place and a job you like then working may be easier. Working full time with a partner who is a SAHP, for instance, and does the sorts of things most SAHMs do, is probably easier than being a SAHM in the pre-school years.
Most women don’t have that sort of support and in the early years a full time job might take them away from nonstop childcare (which lots of women find tiring and tedious, even though they love their kids) but they still have all the other bits to juggle too and so have so much else on their plate that it just ends up being very tiring and stressful.
I think the bigger issue with being a SAHM is the lack of agency, power and standing it gives you in society (and, often, in the family). And down the line that translates to a less happy life. It’s not that working is easier, it generally isn’t, but it ends up being better.