What is safer for the environment

Hello Everyone, I have an question, what is safer for the environment - to produce drinking water by desalination or to treat wastewater for direct or indirect potable reuse?