public override bool Equals(object?obj) => obj is MatchingState <TSet> s && PrevCharKind == s.PrevCharKind && Node.Equals(s.Node);