You will face bluetooth pairing each time switching from Mac to PC. And vice versa.
The best way to use a single kit with more than 1 computer is MX Keys and MX Anywhere. 🤭
As you have it, mind that you have to just hit a key to change the device paired.
Using Apple’s Magic Keyboard and Mouse in Windows can be tricky if you can‘t install third party software. It will be more messy than Logitech’s.
But if you can use
Magic Utilities which is a great piece of software that enables almost all gestures and gimmicks from Apple hardware.