Argentine here. Both economies are pretty similar. Both are pretty diverse in their composition but not in their contribution, so you have the fact that primary activities (farming, oil, etc.) are the great contributor to the tax base and basically all other activities receive subsidies. This is the reason ar & br have one of the highest tariffs for electronics.
The root of the inflationary problem both in ar & br is, and has always been, the printing of money to cover for the fiscal deficit. Government hikes taxes every year and every year it consumes a bigger % of the pib.