Really there are little differences between both languages. To get an idea, the same as happen between American and English. Then your choice should be aimed at if you will have more contact with Brazil or Portugal.
As well as with the Spanish language has been an agreement on a common grammar for all Spanish-speaking countries, this has not happened, finally, with Brazil and Portugal.
Anyway, the differences aren't significant at the end. Thing different is the pronunciation.