Compare how each one gets paid
In Germany a solar plant under the Renewable Energy Sources Act (EEG) gets a market premium or feed-in tariff for 20 years. For many plants that payment drops to zero in hours when the spot price is negative. A standalone battery earns from trading the gap between cheap and expensive hours and from balancing capacity, which Germany's grid operators buy in daily auctions in four-hour blocks.
Good if you want to know which income is set by law and which depends on prices
§ 25 EEG 2023 Beginn, Dauer und Beendigung des Anspruchs · § 51 EEG 2023 Verringerung des Zahlungsanspruchs bei negativen Preisen · SMARD (Bundesnetzagentur) · Regelleistung.net (German TSOs)