Hotels are cheaper to get into since you don't need all the deposit money, but it's really easy to get trapped as you'll end up spending so much monthly it's really hard to save up to get an apartment. If you're trying to move there on a budget maybe look into renting a room in a house or apartment with roommates or staying in a hostel short term. Hostel can have the same issues as hotel, but cheaper.
It actually depends on the purpose. Say for example if you want a place to stay while you are on a vacation, then apartment (vacation rental apartment) is a lot better, considering the facilities and amenities provided.