In basketball there has to be an offensive player assigned to each basket (there are no 'team' baskets, like there are rebounds) - the rule of thumb is the offensive player closest to the basket or to the defender who last touched the ball. I believe the scorer has some leeway on this though. It actually happens not that infrequently on rebounding, and I believe Stewart scored one attempting to tip a rebound this year. In those cases it is pretty easy to assign the basket, as it is typically an offensive player challenging the defender for the rebound that results in the defender inadvertently putting the ball in the basket, and that offensive player is both closest to the defender, and closest to the basket.
On the Swin basket, I have no idea who got credited, because all of the offensive players were running back to defend before Swin saw the unguarded hoop and took her chance! As i remember that was a rebound off a missed free-throw and she really did have a clear lane to the basket for the easy score!