Establishment politicians who sent Lula to jail and thus paved the way for Bolsonaro are as dumb as their political ancestors who helped depose Goulart, hoping foolishly that once the left is eliminated the military will just cede power back to them. Once you open this door, it'll be very difficult to close it in time.
Lula did have a hand in his own downfall - namely, and most strikingly, by hand-picking
Dilma Rousseff as his successor.
But yes, as for Bolsonaro, pity not much of the political elite who are too foolish to see what may be coming to them - pity the millions upon millions who might suffer much worse in the ensuing years.