What “Commit to Branch” does is initiate a commit to Git, more specifically your feature branch. From there, it can review your sandboxes and the metadata within in and ultimately draw a comparison between that and what lives in the repository.
After that is commit is a success and clicking “Review Changes” will actually create that initial Pull Request, which then leads to Merge Conflict and the eventual deletion of that feature branch.