For describing obligation in specific situations, "to have to (do)" is common and practical because "to have to (do)" has past, present, and future forms.
Examples:
My boss was away on a business trip, so I had to run the department meeting in his absence.
My boss will be away on a business trip, so I will have to run the department meeting in his absence.
For describing obligation in timeless situations, "must (do)" expresses obligation, often imposed by the government or an employer.
Examples:
All professional truck drivers must have a valid class 3 truck driver's licence.