Renewable energy production takes a minuscule amount of land compared to agriculture, and a lot of that land can be things like parking lots and roofs.
Due to the situation in Ukraine (big exporter of vegetable oil), the world is currently quite dependent on palm oil. You know the one they cut down rainforests to make. It was interesting to follow the politics around the Indonesia's temporary export ban back in May.
Then there is the renewable energy production that needs land too. Rivers valleys turn into hydro dams. Grass fields into solar fields.