Then don't place cookies that aren't necessary for the delivery of your service. There, problem solved!
If invading your users' privacy is more important than your site's user experience, then the blame is on you, not the legislation.
If invading your users' privacy is more important than your site's user experience, then the blame is on you, not the legislation.
This applies to all laws that are passed. It is a frequent criticism and problem, of laws, is that there are often unintended consequences. And that is the fault of the law, that they did not consider the unintended consequences.
What they should have done is made a public tool that checks your website and says: yes this site is GDPR compliant or no, it is not because A,B,C.