It is, in my humble opinion, fundamental to combine resistance training, at the very least, with an energy deficit through nutritional restriction to promote weight loss ... If you do not lift weights, even if you just do cardio, you will lose muscle as you're losing body fat.