It’s obviously bad to eat super salty “ultraprocessed” food all the time, but it’s not like the salt is the primary problem
To take OP’s example, I’d much rather kids eat generously salted broccoli that is “optimized for taste” rather than unsalted mac & cheese, regardless of whether they just throw it away (which I probably would, too)