Bitcoin full nodes like Bitcoin Knots are securing the Bitcoin network and miners must comply with the Nodes and provide consensus-compatible blocks. So if majority of Nodes filter out spam, it will be very hard for spammers to turn Bitcoin decentralized freedom Monetary network into a meme shitcoin. "Nodes define what "miner" is." This is explain here:
https://medium.com/bitcoinerrorlog/who-secures-bitcoin-95b19bbcda3c
A balanced explanation about OP_RETURN is here:
And some of the risk of leaving spam unfiltered and unlimited are in the following screenshot:

I hope that would be helpful.