Intellectual property is legal rights, like patents, copyrights, trademarks and licenses, that stop others from using protected work in specified ways. The law does the excluding. It protects only what the right actually covers, and only if the owner enforces it.
One example: MongoDB's SSPL
MongoDB's database was open source, so cloud providers could host it and sell it as a service. The license changed that. In October 2018 MongoDB moved new versions to the Server Side Public License, which barred offering the current code as a hosted service without releasing the whole service's code. When Amazon launched DocumentDB with MongoDB compatibility in January 2019, it was held to the older 3.6 API.
Microsoft had cloned the API in 2016 and Amazon followed, so customers could keep the same application code, drivers and tools. The license fenced off the newest features. MongoDB's own hosted service, Atlas, grew faster.
Oct 2018MongoDB adopts the SSPL
3.6the API version Amazon's clone was held to, 2019
Rights matter where they block. A patent on a feature customers don't care about, or a copyright on code anyone can rewrite, protects little.
Rights also have edges. Rivals design around patents, clone interfaces and wait for terms to expire, so intellectual property works best alongside something a rival can't copy as quickly, like a faster product or a large customer base.
It costs money to defend. Lawsuits and license terms only protect a company that's willing to use them.