Question regarding removing a struct from TArray

Thx to help from elsewhere I know it’s caused by my struct not having == operator defined. I would probably use UObject here instead of a struct (though unique id property for the struct was also propsed and it would work too)