Desalination is much less energy intensive than boiling water. Because that steam can be used to heat the incoming water. ie recycle the heat. Staged flash desalination needs a “lot” of power but its all low grade heat (less than 100C since it runs at partial vacuum) and it is *way* less than the latent heat requirement to vaporize the water processed.