Coriander actually comes from a cilantro plant that goes to seed. Commercial coriander comes from cilantro plants that are breed to seed more quickly and abundantly.
It would depend on the recipe.
Coriander is the whole plant, whereas cilantro is a stage of growth: the stage producing light green broad-leaf growth prior to bolting.
Bolting is the next stage...