It would be better, though, to briefly enter the US under the TD so that it is recorded as a successful entry under TD rather than a denied entry under TN. You can turn around and go back to Canada shortly thereafter to resolve the issue. But it would be better to do so under your own terms after a successful TD entry rather than under their terms.