true, but they had a local presence for reasons that benefited them; legal, operational, commercial, strategic, whatever. So I'll take it as good news.
For X? Sure, that's why they're leaving in the first place - by not complying to the judge's orders, they'd surely get slapped with fines and such. As a company, it makes sense to leave and avoid being accountable, but given the influence they (sadly) still have in the media, avoiding those repercussions and letting bad actors do their thing, they're adding gasoline to the burning world.
The fact that Whatsapp is more popular in Brazil than X is beside the point.
What's going to happen the next time the government or judges called them from something? They don't respond and the judge are going to order the ISP to stop forward data from and to them, blocking them on Brazil. It's not even going to be the first time, brazillian judges have had fights with whatapp before, and for a couple of days whataap have been blocked. Whatapp move like 10% of the Brazilian economy, so it was solved quickly, Twitter is nowhere as relevant and nobody is going to care when its end blocked.