This is "what about"-ism. It deflects responsibility and puts the focus on other's behavior. In this philosophy for one side to accept that what they did was bad, it requires every single other person in the world to be perfect, which is obviously impossible and therefor insulates the person from criticism.
But, I'll indulge anyway.
Occupying a building is a form of civil disobedience, which in the US is a respected form of protest. I don't know what incident you're talking about with Bernie, but the results matter. Did he schedule the occupation of a government building that threatened the lives of elected officials and killed a police officer? Or was it a peaceful protest?
For AOC, was she praising the mass of peaceful protestors and what they stood for or was she praising an attempt to breach the White House? There's a big difference, so I want to be clear. If it was the later, then that is definitely dangerous.
But praising or bragging is a far cry from planning, persuading and instigating. Plus, Bernie and AOC aren't the leader of the free world. The President has a responsibility to serve the entire US, all 330M, regardless of who voted for him or against him. Bernie has a responsibility to Vermont and AOC to the Bronx. It's apples and oranges. If you want the highest public office in the country, you need to be held to the highest standards and not complain about how those with far less power might have acted.