Would a military consisting of only men be better for cost effectiveness and overall combat capability?

As we know in many armies today there are women as well in it but from what my logic and reasoning would say if you wanted the best military it would only consist of men, especially if you wanted it to be cost and combat effective.

Would a military consisting of only men be better for cost effectiveness and overall combat capability?
Post Opinion