You can’t run with the hare and hunt with the hounds, meaning

HOME PROVERBS

decision

You can’t run with the hare and hunt with the hounds,

used to say that:
You cannot support two opposing parties at the same time; you have to decide on which side you are, in a situation involving two parties with opposed goals or interest.
similar
You cannot serve two masters.