I'm curios what kind of shit specifically DMCA protects you from?
But I agree, that's probably not what OP meant.
Now all it needs is send some letter to github and they take down content, no questions asked, how is that better? It is for court to decide.
It's a lot easier for a large plaintiff - like a record label, a movie studio, or a software publisher - to file a lawsuit than it is for a small defendant like a web site operator to defend against one.