 Kamala Harris, when she's been on the ballot has never lost an election. She ran for DA in San Francisco. She won. She ran for attorney general in California. She won. She ran for reelection of attorney general in California. She won. She ran for Senator in California. She won. It is true that she did not succeed when she ran for president, but she dropped out before the first contest. So she was never on the ballot.