Depends on what the “bad” is….ball out of round? Size disparity? Off center weight distribution? Compression not uniform?
I imagine one can check the size and roundness with a tool of some sort. The others I am at a loss for….There used to be a home “spinning” device that could tell you if the ball spun true, but I have no idea if it actually works.
The way I see it: play the ball you like for spin and distance and don't worry about the mini defects. If its in your head, switch to a Titleist (they have great True Price ratings). Free advice - so by definition worth nothing