"Legacy code isn’t tech debt either: it was right for the time." really? Isn't that what technical debt is, solution that no longer fits the current problem?
The cobol example is great - it is code still solving the problem but is no longer efficient or productive to find and pay cobol programmers.