How to compare object is what i want to use for condition?

Hello, guys!

I want to know what kind a methods use in unreal for compare object.
When i using unity i used tag or layer for compare condition.
But i don’t know what’s in unreal, i asked to ChatGPT. and the ai said using class type(AMyObject::StaticClass()). and in youtube i can see using tag for it.

Please can you teach me what kind a method for object compare condition?
Thanks :joy: