> this isn’t an either-or question. a farm owner may want to add some revenue with electricity generation.
Also: Many plants don't want/need full sun. In fact, they adapt by varying production of a chemical called zeaxanthin throughout the day to manage the amount of energy they take in.
Partially shading crops with bifacial panels (which are semi-translucent) can be beneficial to the crops as well as producing energy.