Snape deserves way more hate, and it isn't even close once you stop grading them both on a single scene from Order of the Phoenix.
James Potter was undeniably an arrogant, cruel bully at fifteen, he hexed Snape in hallways purely because he existed, hung him upside down in front of a crowd by the lake, and treated Hogwarts like his personal playground.
The massive difference is that James actually grew up. By seventh year he deflated his head, stopped hexing people for fun, joined the Order of the Phoenix to fight Voldemort directly, and died at twenty-one without a wand in his hand trying to buy Lily and Harry two extra seconds to escape.
Severus Snape, on the other hand, spent his youth inventing dark curses like Sectumsempra, voluntarily joined a genocidal terrorist cult as a Death Eater, and happily handed Voldemort the prophecy that got Lily targeted in the first place, only switching sides when Voldemort refused to spare Lily while still planning to murder James and baby Harry.
Worse still, as a grown man in his thirties, Snape took his petty high school grudge out on literal eleven-year-old kids, psychologically tormenting Neville Longbottom so badly that Snape became Nevilleโs literal worst fear in the world over the Death Eaters who tortured his parents into insanity.
Dying a brave double agent doesn't erase decades of adult cruelty.