Backport PR #38560 on branch 1.2.x (Revert "REF: remove special casing from Index.equals (always dispatchto subclass) (#35330)")
Backport PR #38560: Revert "REF: remove special casing from Index.equals (always dispatchto subclass) (#35330)"