In the topic of ownership though, you need to ask yourself if you'll realistically be able to live in the same place when your start your career.
Many people can't. They need to relocate to take a starting position somewhere.
SO. If you owned your flat would you be able to start a career there?
If not could you sublet later?
How do the costs compare?
How prepared are you to incur large debts?
posted is true, apart for the need to start a career there bit (No offence intended there, Kreuger). However there is another aspect to consider.
Assuming that funds are actually available for the purchase of a small flat close to Uni, it is definitely worth considering. First and final year students are normally prioritised for allocation of Halls of Residence. Once you get into the second & third year (Umm... how long is the Dentistry degree?), you might have issues with Halls and have to go out into the student housing rental market anyway. Once this happens, all you are doing is helping pay someone else's mortgage.
If you think medium to long term, it would be smarter to get your own flat as this becomes an investment rather than a money sink-hole. That plus the need to renegotiate rental agreements and be at the mercy of landlords if they decide to end your tenancy agreements. The mortgage payment you put in can/will be recovered in the end. You generally break even in the worst case scenario when you eventually move on and sell the flat, but in most cases you would actually make a profit due to property price increase. Even if the market is not suitable to sell, the flat would be close to the Uni, which means that there will be ready student tenants for you to maintain the flat through rental.
We did this back in the 90's when me & my younger brother were doing our degrees (BEngs, MScs, PhD) in London and over the course of 5+ years, we only serviced the mortgage and the usual bills (which in total was still cheaper than the monthly rental we would have had to pay otherwise) and when we sold, we made a 45% profit over the price we forked out for the flat in the beginning. (Edited note: profit margins may not be as high up north though!)
Food for thought...