First of all, I don't think it was goaltending. The rule states the ball has to be on it's downward flight, entirely above the rim, and has the possibility of going in. The first two conditions were satisfied, but clearly that ball had zero chance of going in. At best, it grazes the iron and isn't close to going in. It's very interesting that the slot official, who had the best angle of the shot being wide of the rim, did NOT make the goal tending call. The trail official made the call and I'd argue from his angle he didn't have the perspective that the ball was going to be wide of the hoop. At any rate, it's a tough call to make in real time, so you've got to cut them some slack.
In terms of basket interference, if the offensive player touches the ball while it is on the rim or within the cylinder, it's basket interference. So if he touched it similarly to the defensive player in this instance, it is very close as to whether that ball was actually within the cylinder. A fraction of the ball may have been inside the cylinder, but it's hard to tell. Most of the time, on rebound dunks for example, the refs are a bit lenient unless it's obvious the ball is well inside the cylinder.