Change public override bool Equals(object obj) to public override bool Equals(object? obj) so that the override matches the method signature of the method that your overriding.
public override bool Equals(object obj)
public override bool Equals(object? obj)
method signature