Both are strong, and they are good at different things.
Its headline feature is the roster. With well over a hundred playable characters and destructible environments on a scale the series had not attempted before, it is the definitive choice if what you want is variety and spectacle.
The fighting itself is tighter. Movement flows better, combos feel more deliberate, and the overall pacing rewards actually learning the matchups rather than button-mashing. In my opinion that makes it the better fighter of the two.
So: Tenkaichi 3 for content, Infinite World for the mechanics. Pick based on which you value more.