There's lots of past questions relating to this but all the ones I could find are for when you want to determine if an object is of a certain type of class (if myClassInstance is MyClassType {...}
).
I want to know how I can determine if object A and object B are of the same class type without having to know/specify what that type is.