If your problem is with your code appearing in training data, then you cannot release your code anywhere.

That link you provided only points out GitHub has integrated "create pull request with Copilot" that you can't opt out of. Since anyone can create a pull request with any agent, and probably is, that's a pretty dated complaint.

Frankly not very compelling reasons to ditch the most popular forge if you value other people using/contributing to your project at all.