Not all carbs are digested in the same way. Take resistant starch, for example. It's a unique type of carbohydrate found in foods like bananas (especially greener ones), potatoes and whole-wheat pasta ...
This type of starch ‘resists’ digestion, travelling straight to the large intestine instead, where it becomes food for beneficial gut bacteria.