"This branch is up to date with XXX" when it's not #10910 - GitHub
When you open the merge popup, it starts with a selected default branch (e.g. master), and it can take a few seconds to get the answer/response. While it's waiting for the answer, if you select another branch (the branch you want), and the answer/response from the previously selected branch comes back eventually, it will put THAT response ...