In order to compare the efficacy of any diet, you have to control for the calorie intake. Keto diets work, for example, because you cut out an entire macronutrient, or at least severely restrict it. That makes the total calories go down and hence you lose weight.
Research has shown over and over that once you restrict calories you can lose weight on any diet- all carb, no carb, medium carb, whatever.