There seems to be two different points. One is heard less often, the other repeated by all kinds of folks (myself included a few years ago). Of course a lot of things rimfire get repeated over the years but that doesn't necessarily make them true. As an example, the idea that for accuracy performance barrels will "prefer" a certain "lot speed" was often repeated over a decade ago. Currently few if any serious RFBR shooters believe it, shooting the best lots regardless of "lot speed".
The first view is that good rifles will shoot good, consistent ammo well. Put another way, if the ammo is good, a good rifle will shoot it well. It's important to remember that not all lots will shoot equally well because not all lots are equally consistent. In other words some ammo lots of the same variety (e.g. Tenex, Midas, or CX) are more consistent in quality than others, making them "better" lots.
Of course not all rifle barrels are equal and as a result not all barrels will shoot the same ammo equally well. This is why an inexpensive rifle will not shoot like an expensive one, even when using the best ammos.
The other view, often repeated on rimfire forums, is that each good barrel, shoots different lots differently. They will shoot some lots well and others not so well. In other words they will "like" or prefer some lots, producing better results with them on average.
According to this view, a lot that doesn't shoot well in one barrel may shoot well in another. That is to say, each barrel will shoot some lots better than others. Lots that don't shoot well in one barrel may shoot well in another. It's a matter of matching the lot to the barrel. It's not a question of ammo consistency and quality.