I'm not saying that at all. How many calories are in each respective gram? How is your body processing them? What is your BMR? How many of each are you eating? Both, to some degree are essential. How much are you exercising? If you are going to engage in intense cardio you will need some carbs to fuel you. Michael Phelps eats over 12,000 calories a day when he's training, most of them carbs, yet he stays skinny as a rail. He needs those carbs to fuel his intense swimming regimen. He was also at an age when he probably still had a naturally high metabolism.
That makes no sense because metabolism merely dictates the amount of calories out. It's the key component. Your metabolism will account for about 60% of the calories you burn in a day, your exercise will account for about 30% and the digestive process itself accounts for the other 10%. Thus the best way to burn more calories is to increase your BMR. That's why personal trainers now focus as much on weight training as cardio for clients who want to lose weight. The more muscle mass you have the higher metabolism you will have. Increasing muscle mass will help burn more body fat (in the long run) than steady state cardio.
I would also note that if you suddenly try to lose weight by cutting calories from 5000 a day to 1500 a day your body will respond by slowing your metabolism to a crawl because it thinks it is suddenly starving and will try to conserve energy in response. Thus, you won’t see the results you want to see. You have to do it gradually. Whenever someone tells me they have decided to cut weight and have cut down to 1500 calories a day and are now spending an hour a day on the treadmill or some other cardio machine I know immediately what the result will be. They will see very little in the way of immediate gains and will burn out in a month and give up.