There is no issue to sell a used phone as long as the original owner removes ALL Google account BEFORE doing the factory reset. In that case you won't be asked to log in.
Yet this is still safe as you need your unlock code to remove an account, even if the phone is already unlocked
Yet this is still safe as you need your unlock code to remove an account, even if the phone is already unlocked