get the better of somebody/something

get the ˈbetter of somebody/something

defeat somebody/something: She always manages to get the better of me at tennis.Eventually, his curiosity got the better of him and he had to take a look in the box.