basically both low fat and low carb diets when strict enough will cause you to lose weight by eliminating the irresistible ultra-processed fat+carb combo foods.
the reason to prefer low carb to low fat is that low fat diets tend to be devoid of nutrients and chock full of toxins, as well as tend to be based on processed foods since most plants are not edible without cooking ( raw potatoes are poisonous for example ).
on other hand keto/carnivore is only really deficient in Vitamin C - so comparatively a better foundation for an optimal diet.
or you could just eat paleo - but again - without knowledge / understanding any of these diets can fail - for example Paleo diets fail when people begin to eat nuts and honey by the bucket loads.
diets are heuristics at best. there is no substitute for real knowledge.