The official way to use copyrighted music on YouTube is through YouTube Studio > Audio library. The audio library includes free music and sound effects, some of which don't even require attribution.
YouTube Studio has been updated with new tools designed specifically for creators who are dealing with copyright strikes and content claims. The update is fairly large, adding everything from improved ...