Anything you write should be proprietary by default. So I don’t think you have to add this license to your comments just to achieve your goal. But it makes sense if you also want to give some extra rights to people.
If AI reads your code, but the output is something entirely different, why would that be illegal? Isn’t that the same as a human reading something? I’m curious what the courts will decide, though.
I don’t want to help Microsoft, but some of the arguments made in that article are strange. If AI means the end of software licenses, that means the end of copyright, which is a good thing. When AI gets better, we might be able to feed it leaked or decompiled source code and get something that we can legally use. That’s not the current situation, though. At the moment Microsoft uses libre, copylefted software to improve their proprietary program and that’s bad. But I don’t think we can do anything about it other than telling people to not use it.
“Piracy” is a propaganda term. We shouldn’t use it. There is nothing wrong with sharing files.