What the crews did to avoid a collision isn't the issue. It's how the situation came into being that matters.
A crew in an IFR aircraft fortunately catches sight of a far smaller one and takes action promptly. Good on them for keeping a good lookout, but it could easily have been a far nastier situation. I hope they bought lottery tickets on the way home.