Apple Music's offline playback has bugs but it is less broken than Spotify's (although unlike Spotify you can't automatically download all your songs, you have to do some hacky workaround where you create a smart playlist of all of your songs and then download that playlist every time you get a new song)