Brazil would be probably in a better position but I am unsure if a male heir would have made it better frankly. Because the coup was backed by ex slavers.
I am saying this as someone who is in favor of a Bragança restoration. I am mildly monarchist-ish, but just for Brazil.