Benefits from two seemingly opposed alternatives, as in
Jenny taught in the morning only and worked on her book afternoons, so she had the best of both worlds . Charles Kingsley used this idiom in
Westward Ho! (1855): "Make the best of both worlds." Also see
make the best of it.