The easy answer is that females tend to be better in a community tank- partially because their fins are shorter and don't attract the attention from fin kippers like a male Betta does.
The hard answer is that it totally depends on the Betta! I have had both male and female bettas in community tanks successfully. You just have to choose their tankmates wisely. Don't have a fish that likes cooler temps or high flow, etc. There are lots of fish that do quite well with bettas if everyone has enough space. But always have a back up tank ready for your Betta if things go south, cause it can happen fast.
I have a male with some cories. Female with tetras and danios. Females with male guppies. Females with shrimp (and some that ate the shrimp). I have also had females with otos, female guppies... And even a male with male lyretail guppies with no problems. Just go slow, do your research and ask for specifics here. Someone will have tried a Betta with just about everything and will have a story to tell you!
Personally, I LOVE bettas in community tanks!