Rio, São Paulo and a flight or two: which pack
A week split between Rio de Janeiro and São Paulo uses data mostly for maps, ride apps and messages; with wifi where you sleep, the 3 GB pack, which lasts 15 days, is enough. Add Foz do Iguaçu, Salvador or a few days on Ilha Grande and you are looking at two weeks with more flights and transfers to check: take the 5 GB pack, valid for 30 days.
For three or four weeks that include the Amazon, the Pantanal or the beaches of the north-east, the 10 GB pack leaves room for photos and bookings. The 20 GB pack is for working remotely from Rio or Florianópolis, or for sharing the connection with a laptop. If you run low, top up the same eSIM without reinstalling it. The data calculator works out a figure for your route.