I've seen people claim they avoid this by putting in the prompt "don't use source code from X" and think they dodge this issue.