This myth is usually followed with “X makes you fat, not calories”. That X is usually a macronutrient such as carbs or fat. Sometimes it’s a chemical found in the foods.
CICO principle is still alive and people who respect this principle lose weight and keep it off successfully. It’s mostly the people who look for a shortcut that fail to lose weight and to keep it off.