Washington CNN —  

Kamala Harris’ campaign wasn’t perfect – but the context of her candidacy shouldn’t be ignored, either.

The California Democrat, who on Tuesday bowed out of the 2020 bid for the White House, struggled to maintain a coherent vision on the campaign trail; internal turmoil also permeated her camp. But scrutiny of just these mistakes glosses over the specific histories that have shaped the woman who was the only black female candidate in the race and the uneven standards that had a hand in knocking her out of it.

While Barack Obama succeeded in getting elected as America’s first black president and Hillary Clinton became the first woman to win a major party’s presidential nomination, it’s obvious that both black Americans and women are underrepresented in US politics (and board rooms and other upper echelons of power). It’s not just a coincidence – there are very real biases that work against minorities and women.

These biases and cultural complexities mean that a record of achievement that could lift a white man’s candidacy – a career as a strong law-enforcement officer – could pull down a black woman’s.

Harris’ most obvious demerit was her career as a prosecutor, first as San Francisco’s district attorney and then as the state’s attorney general. The narrative became: Kamala is a cop.

And yet, black Americans’ relationship with the criminal justice system can’t be captured so easily. As The Atlantic’s Peter Beinart explains: “What (Harris’ critics) didn’t do nearly enough was ask whether Harris, as a black woman, could have adopted non-punitive crime policies 10 or 15 years ago and become a city district attorney and state attorney general in the first place,” given that “perceived softness on crime was particularly perilous for black politicians.”

This bind stretches back even further. In his 2017 book “Locking Up Our Own: Crime and Punishment in Black America,” the Yale Law School professor and former public defender James Forman Jr. chronicles not only the fact that black politicians in the 1970s embraced tough-on-crime policies but also why.

“(Black leaders) want more police, more prisons, better jobs, better schools, better parks. They want the whole thing, all of the above. Instead, they get one of the above, which is law enforcement,” Forman told NPR, describing the “pressure-cooker environment” that existed in the years before anyone could fathom the singular damage America’s drug war would inflict on black communities.

This isn’t to excuse the flawed decisions Harris has made in the past, especially those, such as her advocacy for an anti-truancy program (which she has apologized for), that wrought disproportionate harm on marginalized communities. Neither is it to suggest that she shouldn’t have faced hard scrutiny in, of all environments, a presidential contest.

Rather, it’s to underscore that context is key. A better understanding of the political foundation that has influenced Harris offers valuable insight into the dueling interests – to say nothing of the more blatant currents of racism and sexism – she had to navigate as a top-tier Democratic candidate. (“Success within the system was still a laudable act of subversiveness – whether as an investment banker, a corporate lawyer or a district attorney,” The Washington Post’s Robin Givhan recently wrote of Harris’ time as an undergraduate at Howard University.)

And: The Democratic pool, once lauded for its unprecedented diversity, is now all the worse with Harris out of the running so early. As my CNN colleague MJ Lee tweeted on Tuesday: “Kamala Harris’ campaign was historic – a black and South Asian female candidate whose potential seemed sky high early on,” she wrote. “Her dropping out means that every candidate that’s qualified so far for the next debate is white: Biden, Buttigieg, Klobuchar, Sanders, Steyer and Warren.”

Or as the the journalist Mythili Sampathkumar put it: “Personal political disagreements aside: it was/is profound to have seen a Tamil girl be so comfortable in all her cultures and run for president.”

Looking ahead, perhaps the more meaningful thing to do isn’t to enumerate Harris’ missteps; it’s to remember that this country still isn’t prepared to talk honestly about certain black experiences.