You got a good head on your shoulders. Your reason to buy and not buy both make sense.
In general, one should not invest any money that one needs in the next 5 years. Question is - why are you even thinking of buying stocks as a student. (To keep on topic - the last question is the thought on my mind now).