The interceptor would switch off the Mode C/Mode S as they (visually) approach the target aircraft so as not to activate TCAS in either.
A problem with ignoring any RA on the basis of being "visual with the traffic" is where military traffic has caused the RA. There may well be two, (or more), and the one you can't see may be the real issue.