I can confirm that having physically different keyboards makes it much easier to switch back and forth. Many years ago, I worked for a company that had a mess of old Sun hardware in the lab with the old Sun-layout[0] keyboards. After about a week of using them, I was pretty comfortable using them, and had no trouble switching back and forth the the customary layout keyboard at my desk.
One day, I discovered the one Sun machine that had a Sun-manufactured keyboard in the customary layout. I was incapable of functioning because I expected it to be in the Sun layout. I had to switch it for a Sun-layout keyboard so I could get some work done.
As an aside, I decided I prefer the Sun layout, and so I've remapped the 6 or so keys via software on basically every computer I've used since. The only issue is the `~ key, which ends up on [ESC], since I haven't yet found a keyboard that has the [backspace] key split in two.
In practice, this isn't much of an annoyance to me. My wife, however goes nuts any time she needs to use the computer for "just a second" and doesn't log me out. I've since gotten better at switching, and if I have to type something when she's logged in, I usually flip the switch pretty quickly.
[0] https://deskthority.net/wiki/Sun_Type_5#Layout