My response to bad officiating in college and high school is that your team needs to be more than just better than the other team. They need to be so much better that you don't leave it up to the officials who tend to favor media darlings and big market teams. BYU was that much better than Wisconsin. One reason I like football better than Basketball is that the officials tend to be less involved/influential in the outcomes in football compared to basketball.
The officiating in the NBA is a lot worse. I honestly haven't been able to watch NBA basketball for years for the same reason I don't watch much WWE. When I saw the steep decline of Karl Malone and the extent to which that was tied to how the games were officiated for him (and, after the David Robinson incident, against him), I realized how much the officials control the outcomes of games in the NBA. Nobody in the NBA will ever tell an official how to officiate a game, but the NBA does give premier games to the officials they assess as "better" and all of the officials see what is going on there and follow suit. The refs talk to each other. Also, at least for a few decades, a ridiculously high volume of the NBA officials came from the same small area of New Jersey, which doesn't look fishy at all.