Did you know that the first of the two configuration options for Copilot is an option to allow or disallow it to suggest samples that match public code?
I think the claim that it's "probable copyright infringement" is nowhere near proven.
GitHub likely gave that option to satisfy user's lawyers who might have a higher threshold for "clean room" implementations or "no open source". Not as any kind of implication of copyright infringement.
Fair use works as an argument to the usability of Copilot.
Derivative works, per US Copyright law, are not infringement, either.
is 'if err != nil {' your original work? Or is it 'commonly accepted knowledge' as a Go programmer?
In other words we're getting into cheat-detection software territory, which sounds difficult to get right in general.