Any comparison must factor-in durability, maintenance and all attached costs.
True- but you must also factor in pollution (saved from burning of coal as well as induced by the manufacturing of the panels) and the freedom from sources of foreign fuel.
If you can get true electric cars on the road, powered by nukes or these panels or whatever— then you’ve really got something.