Sugar is not an essential nutrient. You can eat absolutely no sugar without any ill effect. If you eat some starchy vegetables, that provides all the carbohydrates you need.
Even if you want to eat 6000 kcal as carbohydrates, you can eat that easily from rice/maize/bread/potatoes etc., with no sugar. In fact it is much easier to eat a huge amount of food when it does not contain sugar, because even if sugar is addictive and makes you crave for it, when you eat too much sugar during a short time, it becomes disgusting when you try to eat more.
On the other hand, if you stop eating salt, or even if you just eat too little salt, you will die soon, and not in a pleasant way (e.g. one of the symptoms of hyponatremia caused by eating too little salt is severe constipation, because various muscles, including the muscles that are used for the peristalsis of the intestines, lose their strength).
Like for any essential nutrient, both eating too little salt and eating to much salt is bad. The recommended daily intake of salt is between 4 and 5 grams of salt.
In order to be able to control precisely the daily intake of salt, I prefer to not add any salt to food during cooking (and I do not buy industrially made food). Instead of that, I add the salt only immediately prior to eating, so I can know exactly the amount added during a day.