My guess is you could build an AI + limited human review tool that would do it better than the 75th percentile lawyer. But there's not much reason for YouTube to invest in this.
Meanwhile "Old Town Road" was made by "buying" the "rights" to an instrumental track that was created by Trent Reznor, but Trent Reznor had to be told that someone was using Ghosts 34. IIRC the "beat" was "bought" for less than a meal at a fast food restaurant, not from Reznor (or NIN, or Nothing Records, etc).
I made $0 after spending about a decade composing, writing, arranging over 4 solo albums and an additional 6 albums with another person. One thing of note, though, was the "Napster Bad" metallica workaround on file sharing apps was to change the name of the band... to our band name. We didn't stand a chance.
I.e. a tool would have to ascertain whether a clip of music in a larger video was being used as part of film criticism (allowed) or as musical accompaniment to a comedy scene (not allowed). Even in a film criticism clip, the music is allowed if it's part of the analysis, but not if it's used as "branding".
So that distinction simply can't be made by a tool, not even with current AI. Heck, in important enough situations that are gray areas, people go to court and it takes a jury to decide.