Pick a diatomic and the diagram fills itself from the bottom up. Watch where the last electrons land, then read the bond order and the magnetism straight off the picture.
Pick a molecule.
Electron arrangement
Each molecule loads with the order it really uses. Force the other one and see what it would wrongly predict. This is why B2 is the test case that settles the question.