Solar panels are already being put on fertile land (in UK), so if that land can get dual-use and not waste it's potential for food provision then that seems more optimal.
That said, these threads always confirm in me a belief that we need to cut human population replacement to save the planet and our own species.