It prioritizes whatever device you have used most recently. So if the iPhone has been or is unlocked, messages will show up there first. If they are not acted upon there, the message should show up on your watch a few seconds later. If the phone is locked, it should come to your watch only.