Molecular origins of heterogeneity in cancer cell death