For most small bathrooms, a standard wall-mounted or ceiling-mounted extractor fan is usually a cost-effective choice, provided it offers sufficient airflow and can vent moisture outdoors effectively.
An inline extractor fan may be a better option if you want quieter operation, have limited space or need to run ductwork to an external vent some distance away. A fan with a timer or humidity sensor can also help remove lingering moisture and reduce condensation.