Earlier quoted context omitted.
Aaand this is true! https://en.wikipedia.org/wiki/Photosynthetic_efficiency 1-2% of best plants vs 22% of best commercial panels! :)
This is not exactly correct. The link explains why by breaking down the stages of efficiency loss. The solar panels only mitigate the first step, so you are look at 22% vs 47% for plants. Then, the 22% is not including losses from converting the electricity to lighting (or heck, the energy to create those panels in the first place). LEDs can select the most favorable wavelengths however so maybe it can approach parit…
But while you are at it, you could directly to synthetic food... Hydrogen, methane, formaldehyde, sugars.