I have had a couple "hens" turn out to be "roosters," and I would have kept them if it weren't for the neighbors. Roosters are illegal within city limits, and one of our next door neighbors is the epitome of a busybody.. She reported me to the city when I had a hen crow once! Neighbors like that make me glad that I keep my coop within the letter of the local laws.
The city fellow came by, saw that everything was in order, and went on his way. But some of us really can't "sneak" a rooster in, and the silencing neckbands can potentially strangle them, or just not work.
As a vegetarian, you could purchase pre-sexed chicks, as some others have suggested?
The male chicks are still killed, but it's at the point of hatching instead of later, after you've gotten attached.
Or you can rescue egg laying factory culls, that would otherwise be euthanized? You're saving lives, getting eggs, and not contributing to animal death?
(I'm not a vegetarian; I'm just trying to think of what you would be wanting.)