Characters are killed as a function of whatever story they’re killed in–because the creators and editors working on that story feel that the death is justified and a natural outgrowth of what is going on. There are a million different shades of how that breaks down–the real answer from your list is “all of the above to some degree.” But the percentages of how much one as opposed to another may be quite different.
carlosjdrew liked this