What determines the path a supernova takes, either as a neutron star or a black hole?