I am not a referee but I believe the rule is as long as the player is able to play the ball it is not consider obstruction. Thus, the defender is allowed to "box out" the offensive player as long as he is able to play the ball. It does not matter if he actually plays the ball or not.