Sanders is more of a populist and idealist, while Harris is more pragmatic. Sanders has voted against a lot of things that were 95% positive because they had 5% awful shit, while Harris (and Warren, for that matter) would tend to vote for them to get policy points through. That means that while Sanders remains 'pure', Harris (and, again, Warren) end up being more effective.