A PV panel costs $0.025/kWh (amortized over 10 years)
AGM costs $0.50, FLA costs $0.25/kWh over its cycle life.
Name brand lithium batteries cost $0.50/kWh (if they deliver the promised 3500+ cycles)
DIY lithium costs $0.05/kWh (again if they last)
My system is grid-backup, with AGM just big enough to get through one night and enough PV to recharge it 5 times over during the day.
If you have a backup generator and you added extra PV (cheap now), undersize battery might work for you. But DIY lithium is affordable.