I buy CDs and encode them myself with Lame or buy from Bandcamp. They live on my computer and I add them to my phone as desired. I also have spotify because tbh you can't buy everything.
I used to use Google music for streaming my own files, but they put that into YouTube Music. I can still stream the files I uploaded using the YT music app but it's clearly not the main intended purpose of the app.