Personally i prefer two computers, two monitors, one mouse/keyboard.
Deskhop has been a lifesaver https://github.com/hrvach/deskhop
Deskhop has been a lifesaver https://github.com/hrvach/deskhop
It does tend to be finicky - sometimes it just refuses to connect, and won't tell me why, and sometimes it'll forget the arrangement. And it requires you to be signed into one account on two machines, which some people may not want to do on corporate laptops.
Input leap[0] is a great open source KVM software version of the deskhop which allows me to control both computers on the same monitor with the sam peripherals.