Let's say you're being fed just the amount of calories your body needs to maintain. What influence on body fat has the distribution of carbs, protein and fat from food then?
You are right that different foods (macronutrients, more specifically) have different thermic effects and therefore require different amounts of energy to metabolise. Protein takes more energy to process than fat. This does not change my overall point.