If you use Universal Control across two devices with different settings for which side of the Magic Mouse is secondary click, it takes the setting from the host Mac, not the device you‘re interacting with. Makes sense because this depends on where the mouse is in front of you.