It's certainly close. In these sorts of end-of-game situations the defender tends to get the benefit of a doubt because the referee doesn't want to be perceived as deciding the game. It probably isn't fair, but it's how NBA games are called.