Compare canonical paths to determine if we're in the right gem