Calories in calories out over simplifies what is a complex issue. It is not "just" that. You even kind of contradict that statement yourself by your later paragraph.
Well, it’s sortof just that. But it’s like saying “the key to safe driving is to avoid accidents.” It’s completely true... but probably not helpful advice for a person who is having trouble avoiding accidents.