That’s a tough one. Proteins are a much more useful source of energy and nutrients here. There are limits though and then it doesn’t really matter how you get your calories.
So obviously carbs are cheap food and pack a lot of calories which might be beneficial in this scenario.
You are right. I can’t argue with that, but I would be careful with this as general advice.