This is not matter of democracy, more this is matter of correct organizational structure.
What I mean, remember Conway rule, that software created by organization got imprinted image of organization structure.
Imagine, making Linux distribution with totally flat structure - this is obvious that kernel must have much higher priority than LibreOffice, or Odoo, or PHP, even considering, that PHP devs number is much larger than kernel team.
What structure mean for priorities - if kernel will be bend for PHP best, we will have kernel, which good handle PHP specifics, but all other tasks will be handled worse, and this is not what customers want now (they want mostly good display speed, second priority good network/disks speed which will obviously demand PHP dev).
So normal modern software development org must have federal organization structure, with departments dedicated to important things, and high level voting should be very limited, and departments should not have rights to interfere to other departments doing.
BTW same problems exists in joint-stock companies - there also much better if major shareholder(s) are also interested in most priority parts of software, and when software architecture changed, also should change structure of ownership.