errorEquals
Determines whether two errors are equal.
This function is used to determine whether a new error is identical to an existing error via SubscriptionCommand. If the errors are considered identical, SubscriptionState.errorUpdatedAt is not updated, and the existing error state is maintained.