but in the other room does it go hinge or lock side
Lock side, because it's consistent with the other side of the wall and it's nearer to you as you enter the room having opened the door
I have one such room in my own house where I put it hinge side and after a few months use I swapped it (left a wire in the wall to assist) as I couldn't decide which would be better at the time so I left a strapper up, across and down to the same position the other side
I recommend you do this for all your doors where you're wondering, if this is a new built wall; it's trivial and cheap to leave a wire with sufficient cores up, across the top of the wall above the door and back down, all cores wired to earth, then if you decide you want the switch the other side it takes about 20 minutes to chop The plasterboard, put a back box in, move the switch over and leave a blanking plate the other side
If the blanking will bother you, run the spare wire to the ceiling rose just like the switch wire is, keep the square of plasterboard you chop out of the one side for filling in the other side. As per before any unused wire should have all its cores wired to earth
Just living and using the house will tell you where
you Think the switch should be. I kept walking into the room and pressing the wall on the lock side, but no switch there, so I swapped it
If the room were a corridor or the door is in a corner, ie the wall and the door are at 90 degrees, hinge side may make more sense as you'll see the switch when you open the door
It's also feasible to mount a light switch in a door frame, or even not have a switch at all. All the small rooms in my own house (WC, utility, walk in cupboards/wardrobes etc) have doors that open outwards into the larger room to maximise space without having a door in the way in the smaller room, and they all have PIR, also handy for hygiene if you want to wash your hands and not touch a switch or door the last non-washing user has smeared poop all over. Not that we're that kind of family of course, but I can't help wonder about some of the visitors