John, just for the point of discussion, what is the difference between a receptactle in a box, and a female plug on a cord?

Where is there a hazzard, and what if the cord drop was intended to be shared between 2 different pieces of equipment?