H.M. Pulham Esq. must be one of the few films where Hedy Lamarr plays a woman as intelligent as she actually was in real life. Definitely the only time she plays a character named Marvin! You might call this a "domestic drama," or you might use the category described by Jeanine Basinger as "the woman's film with a male protagonist." It's much like the later The Man in the Gray Flannel Suit. In a way, Robert Young's relative lack of star power as compared to Gregory Peck (in Suit) helps make him seem a more average, representative kind of guy. Do you do what you want to do or what's expected of you? Exactly what is it you want to do, anyway?
Yes, and would doing what you wanted to do have made you any happier? Maybe, maybe not. It's a very questioning movie, it doesn't necessarily answer for you.