Hotel accommodation and residential dwellings are two different things, as understood in common parlance as well as gst law.
On subject transaction, GST is not payable by registered recipient under RCM, even if residential hotel booked thru leave and license agreement for 2 years for 10 rooms to serve purpose as Bachelors' accommodations.
However, "the hotel" needs to charge gst under forward charge if it is registered 'or' is liable to be registered under GST.
P.S. residential hostel and hotel are two different things. There are contrary views & controversy, as far as residential hostel is concerned.
These are ex facie views of mine and the same should not be construed as professional advice / suggestion.