Your second paragraph covers what not getting out-coached is. A coach can have a good plan, make in game adjustments and still lose because the other team hit a big shot, your players didn't execute or even miss free throws,nor sometimes you lose because of bad luck, like a blown call or a half court shot.
When you have a lousy plan, or fail to recognize/adjust to what the other team is doing when they are exploiting your weaknesses, you are getting out coached. Sometimes it is something as simple as not settling your team down when they are rattled by calling time out at a critical point in the game.
Sometimes you can coach well, the players play their hearts out and you still lose because the other team is just that good.