To measure all calories as the same would be the equivalent of measuring all liquids the same - a litre is a litre right? Well, not quite.
To compare the two drinks in the picture would be like comparing gasoline and water.
Sure a litre is a litre but a litre of gas in your car's fuel tank could prove beneficial while a litre in your body would prove quite destructive.
You may not be reaching your body composition goal (notice I didn't say weight goals) because though you may be eating the right amount of calories you may not be getting them from the right sources.
Dark greens & other veggies, legumes, complex carbs should make up the majority of your diet.
You can also add lean meat protein as an option - though not a prerequisite - to ensure you reach optimal levels of protein.
Opt for foods that are real - that actually grow as often as possible when given the choice and STAY AWAY from foods that have a zero calorie balance cause your body doesn't understand the language those "foods" speak and they create a whole lot of chemical reactions inside you that aren't geared towards optimal health.
All and all, know that calories are a part of the eating equation but they aren't the only thing that matters.