Majority voting works best on answers that behave like answers: short, canonical, easy to normalize, and preferably surrounded by a box. Code does not behave that way. Neither do patches, tool trajectories, debugging plans, or most useful agent outputs.
That is why Does the Same Token Mean the Same State?