In the Compare mode the Sync button next to the Zoom slider is greyed out and I do not know why. Two photos are showing, which is a common cause but not here. Please see the attached screen shot.
The [Sync] button in Compare mode is for syncing (making the same) the ZOOM preview of the two images being compared. This will require the padlock to be unlocked.
A new version of Lightroom Classic was released today—feel free to download it and check it out! I want to make sure I understand your question about the Compare feature correctly. Could you share a bit more context or clarify what you're trying to do?