Rock n play or swing?

Do I need both? What is the difference between the two?