This topic can be a bit confusing, as information we find on the subject is often not complete and various sources may use different terminology. Confounding the issue more is that many sources treat "nematocyst" and "cnidocyte" as synonyms, which they are not. Many sources define the nematocyst as the stinging cell of Cnidarians, but that is not technically correct. A nematocyst is better described as the stinging organelle inside of some cnidocytes. The Cnidocyte is the defining characteristic of Cnidarians and all Cnidarians at the very least have ancestors that had cnidocytes. (I have read in one source that some octocorals have lost them all-together, but I remain skeptical until learning more.) Each cnidocyte has an organelle called a cnidocyst that discharges when a trigger mechanism on the outside of the cnidocytes is touched. A nematocyst is one type of cnidocyst. There are 3 different types. There are college-level biology textbooks that neglect to mention this fact and simply state that Cnidocytes contain nematocysts. To be fair, the stinging nematocyst is the form that is shared by all major groups of Cnidarians, but some members of those groups have lost them. Most corals have 2 kinds of cnidocysts: nematocysts and spirocysts. Corals that don't have stinging nematocysts generally use only spirocysts which capture food by ensnaring or entangling it rather than harpooning it and injecting it with venom.