There's no shortage of verbage being posted here but really, just delete your Google account, remove your SIM card, and do a Factory Reset. Once done, your previous ownership will be removed from the phone.
All the hype that every used phone is going to be forensically examined and its data will be restored is based solely on if you are actually being targeted by someone or some organization (with all the necessary skills, and a lot of time and resources). Otherwise, when you dump off your phone into the resale market or whatever, it's just going to get recycled or disposed of as e-waste, or someone is just going to reuse it as their own phone, not unlike how you using it for.
If you do want to believe that there's some secret society that does actually extract data from every phone, just take a hammer and smash your phone into pieces. (... and before someone trolls that Google is already doing this, it's not a matter where this is happening covertly. Google's Terms of Service, that we all have to agree to, states in plain wording what it's doing.)