Wrap `identical()` in a function to avoid a spurious CRAN warning