Air Conditioner Dehumidifier

Is it better to use an air conditioner or dehumidifier