Buying the inverter first
Starting with “How much is a 5kVA?” or “Give me a 10kVA system” skips the most important question: what exactly are you trying to power?
The sensible sequence is Load → Usage → Backup requirement → Inverter → Battery → Solar array.