You aren't saving the planet by purchasing a product from Apple. They are the kings of planned obsolescence and also have release cycles and marketing to make their customers over-consume.
Marketing that seems to have worked with you. I'm wondering if you even did any research at all.
Instead of using a garbage phone from Apple, go with better alternatives that are made to last, can be fixed, is more environmental safe, can be fixed etc.
The latest version of iOS supports phones from 2019 and Apple releases security patches for phones older than that. Which Android phone from 2019 is getting updates? Which phone before that is getting security patches?
The latest version of iOS has decreased battery life on phones from 2024.