There are many (potentially cheaper) alternatives to buying a special USB device costing $40, but I agree copying to an external USB memory stick or portable drive is a better option, because it provides a backup in case data on your machines get corrupted.
Some options
If you can place both computers side-by-side and power them on simultaneosly, you could transfer files relatively easily via "file sharing". This of course assumes you have two monitors, two keyboards and two mice. Alternatively, you could use a KVM (Keyboard Video Mouse) switch, to share one keyboard/video/mouse between two computers.
https://en.wikipedia.org/wiki/KVM_switch
One option is to transfer files via WiFi, if both PCs have a WiFi card. This assumes you have a broadband WiFi router nearby.
https://www.supportyourtech.com/tec...es-from-pc-to-pc-using-wifi-windows-11-guide/
Another option is to transfer via a LAN (Local Area Network), if both PCs are physically wired to your broadband router using RJ45 Ethernet cables.
https://www.thewindowsclub.com/share-files-between-computers-lan-connection
If you don't have a router with unused RJ45 sockets, the alternative is a cheap 4-way network "switch".
https://www.amazon.com/Ethernet-Spl...twork+switch+tplink+4+way,aps,211&sr=8-1&th=1
Failing this, there's the old fashioned crossover cable method, which requires a special "non-standard" Ethernet 'crossover' cable. costing a few dollars. These crossover cables look the same as standard Ethernet cables, but internally, some of the twisted pairs are routed to different pins on the plugs.
https://helpdeskgeek.com/networking/connect-two-computers-using-a-crossover-cable/
If both PCs have Bluetooth, that's yet another option.
https://www.tomshardware.com/how-to/send-and-receive-files-via-bluetooth-in-windows