Bernie is the closer analog to Trump in the Democratic Party, at least for this comparison. Trump is not a checkbox filling candidate by any measure. He was the protest vote against the system.
Even the second time, for different reasons. There was a lot of anger at how the Democratic Party kept the details of Biden’s decline hidden, and then did an emergency switcharoo at the last minute without a second primary. A lot of dem voters felt disenfranchised, and didn’t bother voting, or filed a protest vote thinking Trump would be as ineffectual the second time around as he was the first.