I picked this KMV switch (link below) up a few weeks ago and it works well in flipping between my work chromebook and my personal MacBook. simple button push and the inputs flip. I do see a minute or two delay for the MacBook to wake up and recognize the displays connected. I have to use an extra apple dongle for the ability to have 2 HDMI out ports since the 2019 MacBook I own only has 4 usb-c ports by design.
it also has multiple usb-a inputs so you can put a receiver for a wireless keyboard and/or mouse so you don't need to flip between 2 sets, 1 for each computer. (might not work for apple Magic Mouse/trackpad)
https://www.amazon.com/dp/B09FLMM94L?psc=1&ref=ppx\_yo2\_dt\_b\_product\_details