Which phrase best defines the term “opportunity cost”?

what a country produces when it specializes in a good or service
what a country gives up when it chooses to produce a good or service
what a country gains when it chooses to produce a good or service
what a country invests in a particular good or service

What a country gives up when it chooses to produce a good or service