More generally, a slip gives you access to shore power. It allows people to get on and off the boat at will, rather than the need to be ferried by dinghy. Some slips give you access to shore amenities like pools. Moorings are further out, so may get better breezes; some are more rolly. The relative advantages depend on whether your boat has a genset and a/c.