They are "almost" the same. They are both in the genus Euphyllia. Torch, Frogspawn and Hammer are all different species within the same genus - and even among the species there are different types of Frogspawn and Hammer/Anchor.
They will get along fine in close quarters because they don't perceive others of similar genus as a threat.
Jenn