Miners also decide whether a given block is valid and should be incorporated into the chain they are building.
You ignore the role of full nodes and users to decide whether to ignore blocks that the miners produce. If miners produce invalid blocks on the longest PoW chain, non-miners will ignore that chain and its coins will be worthless.
If enough miners start censoring transactions, users will hard fork to a different PoW and destroy the miners’ hardware investment.
The ability of users to choose which chains to accept/ignore and to enact PoW changing hard forks gives miners almost no power. The best that miners can do is cause some disruption in the short term. Emin Gün Sirer explains this in detail here and here.