It does erase your Google account.
It does NOT erase knowledge of your Google account. When you go to set it up after a factory reset, if FRP is active then you get this:
View attachment 326719
To move past this requires the old user's Google account login.
This is Android Factory Reset Protection. It quite literally protects against factory resets. This is theft protection, just like Apple's stuff.
If you want to REMOVE FRP, you simply remove the Google account in question from the phone prior to doing a factory reset.
I cannot imagine you've never come across this information before.
oh, dude, please. If you only erase your Google account and not others, the next guy can have access to those accounts. That's not at all what I'm talking about.
Remove the key Google account--the one that all your apps are tied to--prior to factory reset. Then it's good for setting up as new after the factory reset.
Please don't give bad advice like you've been giving. And you're hanging onto it for dear life, for some reason. It's clear you've never done this with an Android phone after Lollipop.
Here's an idea: do a factory reset on your own phone, right now. Go and set it up from scratch. See what happens.
You have given 100% incorrect advice, and you're hanging onto it for dear life. Please stop until you have the facts.