All trainer battles are optional, though you may want to do at least some of them, anyways, as you get rewards for doing so, and most of those rewards are quite good.
And I definitely recommend these games. The graphics and animation are ass, and it's a buggy mess, but the characters and writing are the best in the franchise. I legit loved every main character in the game. If you want to wait for an optimization patch, I completely understand.