But I don't think you can stuff yourself on 100,000 kcal of walnuts and not store them as fat. Maybe you'd put on less than if you have 10,000 kcal of pizza or ben & jerry's... But calories DO matter!
Calories from carbs matter.
Calories from fat do NOT matter. Read 'Good calorie bad calories' to learn how calories work.
I know someone (and checked their complete food log) who steadily lost weight, while eating 5000 calories a day (90% fat) with no exercise. They struggled to eat that much food, as it was well over being 'full'. Dairy did cause stalls and removing dairy resumed good weight loss.
Calorific deficit tells your body that you can not get enough food and it will try to hang onto fat as much as possible. It is a terrible way to try and lose weight.
The "Seven Deadly Sins"
• Grains (wheat/rice/oats etc) . . . . . • Dairy (milk/yogurt/butter/cheese etc) . . . . .• Nightshades (peppers/tomato/eggplant etc)
• Tubers (potato/arrowroot etc) . . . • Modernly palatable (cashews/olives etc) . . . • Refined foods (salt/sugars etc )
• Legumes (soy/beans/peas etc)