WHoa, I would not say renting is throwing money away. There are very tangible things that happen when you buy. What is you transfer from the program? What is you, heaven forbid, get fired or quit. Now you are stuck with a home that you have to sell. Renting may (or may not) be cheaper than buying unless you think about living in the area after you graduate. It is not really throwing money away if you take the difference between your rent and what you would pay in a mortgage aind invest it.
Depending on finances renting may be better or worse than buying but I never look at it as renting is throwing money away. My wife and I rented while she was in residency and bought afterwards when we move to a different city.