Isn't that an argument that all schools should then be boy/girl schools, always separating kids based on their sex? After all, this is the most effective model right?
If schools has gone away from this model, I assume they had a good reason. We also used to separate women from men in the work place. That too was changed in the last 100 years. Business somehow decided that productivity went up if did not separate people based on their sex.
If we moved away from this in both schools and work, why are we then trying to reintroduce it again with the same argument they had a hundred years ago? Is there any exceptional detail that only computer science has?
It might be, and I'm not completely sure it isn't the best model.
But work environments are totally different situation. School is an exception because it is at a time where kids are in their formative years, thus creating artificial environments that are maximally conductive to learning is appropriate (which is what "school" is to begin with).
I don't really think exclusive events are the solution either and I'm not convinced they don't make things worse. Tech events shouldn't exclude either gender and when they do (or have events/do things that make one group uncomfortable) they should be called out on it.