What is the difference between a planetary nebula and a supernova?