You could use a translation to move one to the same position as the other and compare if they have the same orientation (like both are pointing up).
If not, you could use rotation to do so, then use translation. Sometimes even reflections might work, but that's a bit more complex.