Thicker spectral lines = denser star.
Masses of giants and supergiants may be 10 to 30 times that of the Sun (main sequence star), but their volumes are often 1,000,000 to 10,000,000 times greater. Thus they are low density stars.
So the thicker spectral lines must be the main sequence star because it is denser, and the thinner spectral lines must be the red supergiant because it is less dense.