The starting mass determines the path
Stars share the early sequence nebula, protostar and main sequence. Their later evolution depends on their initial mass. When core hydrogen becomes depleted, the balance supporting the main-sequence stage changes and the outer layers expand. A star similar in mass to the Sun becomes a red giant. A much more massive star becomes a red supergiant and follows a different final pathway.