Like others said, not much to do or see in GRU, specially if you only have a couple of hours. I´d stay at the RCC.
Regarding GIG, I don´t think there are any *A lounges anymore, but I could be wrong. Not sure if you´d be able to use the TAM lounge after they gteamed up with UA though.