Return on invested capital measures profit against everything funding the business: shareholders' money and borrowed money together.
That closes the loophole in ROE. A company can't look brilliant simply by taking on debt, because the debt is counted in the denominator.
Consistently high ROIC — mid-teens and above, for years — is the strongest single sign of a durable advantage, because it means competitors haven't been able to compete the returns away.