How to Copy a CD to Apple Music library on a PC
The short answer is to stick with the legacy iTunes app. Apple Music won't do it. If you've made the switch or prefer Apple Music, here's a workaround if you still have the semi-operative legacy iTunes app: Open iTunes and insert your CD. Load the songs as was normal with iTunes. Then incorporate the songs into Apple Music by finding the appropriate folder on your local drive (or the cloud I guess). I've done this with a couple of CDs.
Windows, Windows 11 (26100)