If you buy using Dollars, your Brazilian credit card’s administrator will charge IOF.
If you buy using Reais the conversion is made at the store using the dollar’s current daily exchange rate, and the value will be debited in Reais on your Brazilian credit card without charging IOF.