A dock expands one selected host
A conventional dock gathers displays and peripherals behind one computer connection. Moving that cable manually may be enough if switching is infrequent. Verify that the dock supports each host you intend to use; the word dock does not establish two simultaneous upstream computer connections.
A KVM selects a path between computers
A separate video-and-USB KVM can be useful when the two computers expose different output types. Map video and USB separately and confirm the exact switch supports those signals. It need not provide laptop charging, Thunderbolt storage support or the same bandwidth as a Thunderbolt dock.
A combined model narrows the host choices
Sabrent SB-TB4K combines two-host selection with downstream Thunderbolt and USB connections, but its Thunderbolt-certified-host restriction remains decisive. Do not use the broader DP Alt Mode description to approve a USB-C-only machine. Price the required display adapters and any separate laptop power along with the switch.
Two docks can preserve continuity
Separate docks cost desk space and may leave some manual switching, but a drive or network path can remain with each computer. For infrequent switching, an existing monitor input selector plus supported keyboard/mouse sharing may already meet the task. Buy a combined device when that specific shared path saves useful repeated work.