OP isn't saying peanuts are a poor source of nutrition. OP is saying a few peanuts are calorically dense and it is easy to consume hundreds of calories through seemingly inconsequential amounts of snacks and drinks.
Calories isn't everything, there is a lot more focus these days on how different foods affect metabolic hormones affecting satiety, blood sugar, etc. On those metrics, fat alone (which account for most of the calories in peanuts) is very satiating and does not trigger a later blood sugar drop (which causes cravings). That's why people on a diet drink 'bulletproof coffee' (coffee with butter in it), because it is extremely filling while not making you hungry later.
Depends on what your entire diet is. If you are eating only peanuts - or anything else - that is bad. If you eat a handful of peanuts once in a while that is fine. Even a cookie every few weeks is fine, but 6 cookies a day every day would be bad. Someplace in between is generally a good place to be.
I'm assuming of course that you are "normal". If you are allergic to peanuts they are of course worse than a cookie. If you are diabetic cookies are bad.