Here are some examples:
- One may prefer to live a purely libertarian or communist lifestyle, but nowhere on earth is that available so they make the best of their present situation. Are they a hypocrite for living in a different type of economy?
- One may be in an unhappy marriage or job and prefer to live a different lifestyle, but are prevented from changing it due to cultural expectations, kids, or other things. Are they a hypocrite for staying in that marriage?
- One may prefer the policies or a red or blue area but live in the alternative due to job availability or family needs. Are they a hypocrite for not moving?
This seems like a very weird question, because there is no one single answer. I'm also wondering if there is some agenda behind it. Anyway....
Basically, it's only hypocrisy if the individual is contradicting one of their own beliefs.
If you have no choice, in most cases that isn't hypocritical. There will be exceptions, of course. E.g. the individual may insist that they have agency in a given situation, when in reality they don't.
As to the examples:
You aren't necessarily a hypocrite if your personal utopia doesn't exist. However, you can still be a hypocrite if you are, say, a libertarian who exults in the use of state power to restrict liberties.
You aren't a hypocrite if you are stuck in a bad marriage in a society with no legal methods to end it. Using marriage to hide one's sexual orientation in a society where that is stigmatized or illegal is complicated -- e.g. it can certainly be unfair to lie to your spouse for years about your orientation -- but that's not necessarily
hypocrisy unless you are simultaneously and loudly professing your hatred of LGBT individuals. Or: You
are a hypocrite if you spent years telling people that divorce is unethical, and get divorced anyway.
You're not necessarily a hypocrite if you
choose to live in an area where your political preferences diverge from your neighbors. (Nor is that necessarily an example of being
forced to live somewhere.) In fact, at least some nations recognize that you have the right to advocate for change in your community.
However, if you heavily criticize the political leanings of the area you live in, while taking for granted the advantages offered by that area,
then you're a hypocrite -- regardless of your options to move. For example, if you're a hard-core conservative who wants local government cut to the bone, and then complain when the city cuts back trash collection from 2 nights a week to once every 2 weeks, you're a hypocrite.
Or, let's say it's 1975, you live in the USSR, you hate Communism, you want to leave, but you can't. Are you a hypocrite if you publicly support the government of the USSR, especially if you're making public statements of support in order to try and create an opportunity to defect? I'd say no.
Or, if you live in New York City and push for more gun control measures, while driving to Virginia to buy firearms that you can't legally buy in NYC, you're a hypocrite.
Or, many of the politicians who voted for Prohibition in the 30s also violated those anti-alcohol laws. (FYI, George Cassiday was a bootlegger who provided alcohol to members of Congress, including many who voted for Prohibition.

)