CNN analyst says Democrats should have listened to Bernie Sanders