Use something like NoScript, Ublock Origin, or an Adblocker and simply block the Google domain (could do it with hosts file too).
There's another, less sledgehammer way to do it, I just forget at the moment.
If you do a web search for it, there are numerous published ways.
https://techpp.com/2024/05/28/disable-sign-in-with-google-on-websites/