It is enough to recognize that at minimum, people disagree about which software things cause harm whereas people overwhelming recognize that lead in food is bad.
Given that reasonable people disagree, it's not even close to comparable.
The way social media acts as an echo chamber and may intensify extreme viewpoints and isolation from fellow citizens isn't extremely controversial. It has also been leveraged as a tool for good, helping prevent many people from being effectively suppressed, but it's hard to deny the harm that comes from engagement-driven advertisement algorithms systemically stoking people's anger and sense of personal victimization.
The trends of polarization and politically extreme positions in America in particular over the past 30 years are profound and striking.
Many military applications, obviously. Most of that is intentional harm. There’s a lot of unintentional harm in software too, such as biases in models for medical insurance companies, policing and the justice system.