Sewer vs septic system: which is better for the environment?

Which is better for the environment, sewers or septic systems? The subject might not be eagerly embraced by many, but it’s a legit question to ask.