If 1000 people live in California and 100 of those people live in Berkeley, even if all 100 people in Berkeley agree with something, if the majority of Californians disagree it would and should override what the Berkeleyians want.
If voting is mandatory there's no situation in which a majority decision is actually suboptimal, unless you believe that a minority should somehow be able to override a majority.
The way democracy is implemented in this country is effectively rule of the minority over the majority - the catch is the minority just has to draw arbitrary boundaries surrounding their decisions. You can already see this if you just look at the Bay Area - how can it be so difficult to build if polls show the majority of people support it? Turns out the minority (homeowners) have more power than the majority (renters) in the Bay Area.