Broccoli and broccoli sprouts contain a chemical called sulforaphane that kills helicobacter pylori, the bacteria responsible for peptic ulcers and most gastric cancers, according to researchers at the Johns Hopkins University School of Medicine.