LED’s are up to 50% efficient. The best Solar is hitting 44% effecency. So, we can only keep ~22% of the energy from sunlight. However, plants are green because they only absorb a subset of sunlight. So, by designing LED’s that only emit the light best collected by plants you can get fairly close to 1:1 and theoretically you could see a net gain. Thus, 100 years from now things might flip. Further, we can stick solar panels many places we can’t effecently farm.
It’s still going to stay very niche, such as producing ultra high grade produce for high end restaurants.