Isochoric and isobaric glass formation: Similarities and differences