Refers to a situation where you can enjoy the advantages of two different things at the same time.
“Visiting the beach and the mountains gives us the best of both worlds—splashing in the waves and hiking in nature.”