Inheriting IEntity and IEquatable<IEntity> causing warnings

I have a method that processes a list of entities and checks if they are valid or not. Invalid entities are added to a HashSet. Later, I attempt to filter out these invalid entities from the original list, but the filtering doesn’t work correctly — invalid entities are still present in the final list.

I found an issue, fixed it, but I got warnings afterwards.

PersonSyncService.cs

 protected override async Task Add(List<(PersonEntity dest, PersonSyncModel src)> entities)
 {
     var invalidEntities = new HashSet<(PersonEntity dest, PersonSyncModel src)>();
     //Irrelevant code is removed from this post

     //This is where the problem is. entitesToAdd needs to be 0 because invalidEntities and entities consist of same elements. 
     //For example, if the count of entities is 5, invalidEntities is also 5. 
     //entitiesToAdd should have no elements. But in this code, it would be 5. 
     var entitiesToAdd = entities.Where(entity => !invalidEntities.Contains(entity)).Select(e => e.dest).ToList();
     await Repository.InsertAsync(entitiesToAdd);

     //Rest of the code
 }

Problem is, that PersonEntity inherits from EntityBase class. In which there is a custom implementation of Equals and GetHashCode. This is current version :

public abstract class EntityBase<TKey> : IEntity<TKey>, IEquatable<IEntity<TKey>>
{
    public virtual TKey Id { get; set; }

    // Custom equality comparison for IEntity<TKey>
    public virtual bool Equals(IEntity<TKey> x, IEntity<TKey> y)
    {
        if (ReferenceEquals(x, y)) return true;
        if (ReferenceEquals(x, null) || ReferenceEquals(y, null)) return false;
        return EqualityComparer<TKey>.Default.Equals(x.Id, y.Id);
    }

    // Custom equality comparison with another IEntity<TKey>
    public virtual bool Equals(IEntity<TKey> other)
    {
        if (ReferenceEquals(this, other)) return true;
        if (ReferenceEquals(other, null)) return false;
        return EqualityComparer<TKey>.Default.Equals(Id, other.Id);
    }

    // Equality comparison with an object
    public override bool Equals(object obj)
    {
        if (ReferenceEquals(this, obj)) return true;
        if (obj == null || obj.GetType() != GetType()) return false;

        return Equals(obj as IEntity<TKey>);
    }

    // Consistent GetHashCode implementation
    public override int GetHashCode()
    {
        return EqualityComparer<TKey>.Default.GetHashCode(Id);
    }

    // Implement IEqualityComparer's GetHashCode method
    public int GetHashCode([DisallowNull] IEntity<TKey> obj)
    {
        return EqualityComparer<TKey>.Default.GetHashCode(obj.Id);
    }
}

I have FIXED this issue but the fixed version of my code causes warnings.
Fixed EntityBase :

public abstract class EntityBase<TKey> : IEntity<TKey>, IEquatable<IEntity<TKey>>
{
    public virtual TKey Id { get; set; }

    public virtual bool Equals(IEntity<TKey> x, IEntity<TKey> y)
    {
        // Check whether the compared objects reference the same data
        if (ReferenceEquals(x, y)) return true;

        // Check whether any of the compared objects is null
        if (ReferenceEquals(x, null) || ReferenceEquals(y, null)) return false;

        // Check whether the objects' properties are equal.
        return x.Id.Equals(y.Id);
    }

    public virtual bool Equals(IEntity<TKey> other)
    {
        if (ReferenceEquals(this, other)) return true;
        if (ReferenceEquals(other, null)) return false;
        return this.Id.Equals(other.Id);
    }

    public override bool Equals(Object obj)
    {
        if (obj == null) return false;
        if (obj is not IEntity<TKey> entityObj) return false;
        else return Equals(entityObj);
    }

    protected bool Equals(EntityBase<TKey> other)
    {
        return EqualityComparer<TKey>.Default.Equals(Id, other.Id);
    }

    public int GetHashCode([DisallowNull] IEntity<TKey> obj)
    {
        // Calculate the hash code for the object.
        return obj.Id.GetHashCode();
    }
}

But, now I am getting these warnings :

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật