Apple machines use proprietary connector for the SSD so you are probably be better off using a thunderbolt connection and target disk mode on the old machine. This will require a Thunderbolt 2 to 3 adapter and a Thunderbolt 3 cable. I don’t know if they can both be had anywhere for less than $60.
You can connect an Intel-based Mac to another Mac using a USB, USB-C, or Thunderbolt cable, then transfer files.
support.apple.com
Alternatively you could set up a shared folder on the old Mac and move the data over a network connection.
Share the files and folders on your Mac with others on your network. Share your entire Mac or allow specific users access to certain folders.
support.apple.com
Connect your Mac to shared computers and file servers on your network.
support.apple.com