Hugo’s point about the ownership arrangement comes before the property-type comparison. I’d also challenge the idea that one has inherently better tenant demand: student housing may have concentrated turnover periods, whereas a duplex can still suffer a long whole-unit vacancy.
Before choosing...