DLH17 wroteIf there was a push on the play by player B, and the ball goes OOB, the resulting OOB violation on player B is perfectly acceptable in most game situations I've seen.
I'm assuming that in the quote above that the ball actually went off player A, but the official chose to give the ball to Team A rather than call a foul against player B. If this is actually a close out of bounds call, and the possible foul is a close call as well, I've seen veteran officials make such a call. In fact, in the past, I've made this call myself several times. However, in this modern era, when every single play, in every single game, is videotaped by a coach, or a parent, in some cases with a cell phone, I am now hesitant to make such a call. Now, as the lead, I simply try as hard as I can to make the correct call, it's either out of bounds off player A, or it's a foul on Player B. If my partner, at the trail, wants of offer me some help, I'm more than glad to listen to the advice, but I try not to make up "make up calls" anymore.