Hi,
OneDrive isn't a good approach if they are on the same WiFi network or Ethernet.
Onedrive helps If you want the same files available on both computers and automatically synchronized, Sign in to OneDrive with the same Microsoft account on both Windows 11 devices. Files placed in the OneDrive folder will sync between them automatically. More details here.
If you simply want to send files directly between the two computers, you don't need OneDrive. Windows 11 has Nearby sharing, which can transfer files between nearby PCs using Bluetooth or Wi-Fi. Since the computers are only about 15 feet apart, this is a good option.
The best way is file sharing, though, which I talked about initially:
I hope this information helps. If you have any more questions, don't hesitate to reach out. Wishing you good luck!