According James D. Holt, the difference is as follows: "Haumai is to do with the nature of a person's existence and their place within that, while ahankar is to explore a person's view of their own importance."
Haumai is concerned with a person's inherent nature and place, while ahankar explores the concept of self-importance.