This can be confounded heavily by the riding “agrivoltaics” trend of finding ways to use solar panels while continuing to farm the same land. The most common example are ranching (e.g. letting sheep enjoy the shade under panels) but some crops actually benefit from lower sun intensity.
https://www.theguardian.com/global-development/2022/feb/22/k...
However, that’s probably unnecessary: just converting the land used to produce ethanol to solar farms would produce an enormous amount of electricity with no impact on food production.
> Through spatial analyses, we determined that converting just 3.2% of land currently used for corn ethanol would increase the share of utility-scale solar energy in the US from 3.9 to 13%.