This method is considered to be easy and reliable than second method as all songs, albums or playlist will be synced to iTunes if the iCloud music library is turn-on on both iPhone and computer as well as connected to Wi-Fi. Even though it is easy, it has some drawbacks like you need to use same Apple ID, the process to download is slow, some songs may be missing and turning off iCloud media library will delete downloaded content.