macOS Monterey gives newer Apple computers the ability to send content to a second Mac over AirPlay. You can also use the feature for screen mirroring, turning a spare machine into an external display.
What’s more, unlike on your TV, AirPlay in Monterey lets you connect two macOS devices with a USB cable, greatly reducing latency and removing the requirement for a wireless network.