Sort:  

By the measurement of different elements in the chemical readings obtained.While one star presents elements that are found in rocky planets, the other does not.
And according to the theories of star formation from the same accretion disk they should be identical in terms of their chemical composition.