function equivalent(projection1, projection2) {
  if (projection1 === projection2) {
    return true;
  }
  const equalUnits = projection1.getUnits() === projection2.getUnits();
  if (projection1.getCode() === projection2.getCode()) {
    return equalUnits;
  }
  const transformFunc = getTransformFromProjections(projection1, projection2);
  return transformFunc === cloneTransform && equalUnits;
}
Checks if two projections are the same, that is every coordinate in one
projection does represent the same geographic point as the same coordinate in
the other projection.

@param {Projection} projection1 Projection 1.
@param {Projection} projection2 Projection 2.
@return {boolean} Equivalent.
@api