The answer is scyphozoan; anthozoan.
In the phylum cnidaria, jellies are members of the scyphozoan clade and corals are members of the anthozoan clade. Cnidaria is a phylum of aquatic invertebrates. It includes sea anemones, corals, jellyfish, box jellies, Hydra, etc. Corals are the members of class Anthozoa and jellies are members of class Scyphozoa.