I have personally found that I have more success in playing to my strengths instead of trying to play to the opponents weakness. For example I will play motion even if the opponent normally plays a 3-2. I'm a better scoring team from the outside and if they normally play 3-2 it means they have weaker outside defenders than inside.
Defence is a little different. If they play motion and your outside men aren't as good as theirs then play a 3-2, but if you think your outside men outclass his then just play man to man, this way you won't give away as many offensive rebounds when you actually do make him miss a shot, nothing more frustrating that him missing lots of shots but you can't take advantage on the scoreboard because you keep giving him a 2nd shot.