I've never been to Sao Paulo, but it has a reputation for being very violent and controlled by gangs. Buenos Aires is actually pretty safe (at least the city itself, the suburbs are worse, but still nowhere near the number of murders that Sao Paulo had at its worst).