Well, there are some people that hold pretty strong to the notion that it doesn't matter what you're eating- that the bottom line is "calories in vs. calories out".
I think a lot of people have lost weight following that rule.
Me? I can't eat 1200 calories of pasta and lose weight. I just can't, and believe me, I've tried

Unfortunately, I am carb sensitive and my body just goes haywire.
I can tell you that there's not much nutrition to be gained from just eating 1200 calories of processed food and you will feel more satisfied overall with a diverse diet, rich in nutrients. That may help with more long term goals. And you'll probably feel a lot better, too
So really, both are probably true to an extent. One works for some more than others.
ETA: just to add, it may not be realistic for a lot of people to eat NO processed foods. I think most diets contain some processed foods and I think it just comes down to balance.