Adaptations by hosts in response to parasitism are generally believed to reduce the susceptibility of the adapted individual. However, recent work on Escherichia coli showed that bacteria can fight deadly phage attacks by committing altruistic suicide upon infection, in order to prevent parasite transmission to nearby relatives. Here, we compare the efficiency of suicidal host defense with individual-based resistance. We show that in unstructured environments suicidal host defense is futile since suicide cannot preferentially protect relatives, whereas individual-based resistance is highly efficient in defying phages. In contrast, we found that in structured environments suicidal host defense and individual-based resistance were both efficient in withstanding phages, with the latter type performing slightly better. We propose that the putative lower efficiency of suicidal host defense might be compensated by the fact that suicidal systems usually do not bear pleiotropic costs of resistance, as it is usually the case for individual-based resistance mechanisms.