If you ignore the fact that your pv panels plus batteries relied on fossil fuel for extraction/manufacturing/transport, right?
Now try to do all that without fossil fuels. Is that still cheaper, today? Pretty sure it's not (pretty sure it's not possible to do that with only pv energy right now, the infrastructure is just not there).