It is bad choises all around.
Using a second hand phone reduces the climate impact a bit but you're increasing the value of the device which is from an U.S. company. Especially one that has currently increasingly stupid ideas how Android should evolve.
In the end everybody has to pick their poison.