Question: Most stars in the Milky Way are like the Sun. The Sun will eventually become a red giant. After the red giant stage, what determines whether a star will become a white dwarf or a supernova?

What is the correct answer to the question from the following choices?
the mass of the star