IANAL, but I assume that the situation is quite different in that when running GrapheneOS on a Pixel, the owner paid Google for being able to run the proprietary bits if they want to.
Also, GrapheneOS doesn't ship Google proprietary apps by default. It's the user installing Play Services, Pixel Camera, etc.
I don't know that they'll care too much - how many people seriously install custom roms on their phone? I'm one of them, and I'm sure there are dozens of us, but probably not enough to make an impact on google's bottom line.