I will start out by saying that a healthy mixture of the two is the best. Although your diet is more important. You could work out all day and then go eat a box of donuts and that workout would not matter. Working out is great but if you don't eat right that workout is pointless. Obviously you have to have a calorie deficit to lose weight and you will struggle to lose weight while eating junk.