See the slide "Cost composition for a typical seawater RO (reverse osmosis) plant"
Fixed charges (primarily capital cost): 31%
Energy: 26%
Maintenance and parts: 14%
Membrane replacement: 13%
Supervision and labor: 9%
Chemicals: 7%
Really cheap solar electricity could reduce the second largest expense (energy costs), but right now that's just an improvement for daylight hours. Battery-stored solar electricity is getting cheaper but it's not cheap enough to actually reduce nighttime desalination costs yet. And if you run the plant only during the day, you get less value out of the very largest expense (capital cost).
Fixed charges (primarily capital cost) 42%
Energy 41%
Maintenance and parts 8%
Supervision and labor 7%
Chemicals 2%
Energy is nearly even with fixed costs for MSF, but fixed costs are even larger here. Leaving this type of plant idle between dusk and dawn would again raise per-unit costs a lot.
Or perhaps I just steelmanned the argument.