In addition to the above comments, here´s my two cents´ worth:
To be caught in a catch-22.
As for your example your boss might have meant that there´s no way out
, you will do the job one way or the other.
Or, whether you like it or not. So, you better do it, whether you like it or not, ha ha ha.https://www.englishexperts.com.br/catch- ... icho-come/