It seems like this might break the GDPR rules for consent:
Any element of inappropriate pressure or influence which could affect the outcome of that choice renders the consent invalid.
https://gdpr-info.eu/issues/consent/
or if the performance of a contract, including the provision of a service, is dependent on the consent despite such consent not being necessary for such performance.
https://gdpr-info.eu/recitals/no-43/
I’m not a lawyer though, so maybe a legal expert can chime in.
edit: the jury is still out it seems:
https://techcrunch.com/2023/10/03/meta-subscription-vs-consent/