It does contradict you: the law very carefully circumscribes the list of circumstances where conflict is disallowed because some types of conflict are explicitly allowed.
As a software engineer, there are legal protections, both in explicit contracts with my employer and things like trade secret and copyright law that prohibit me from, selling proprietary information I have access to to competitors, or using it to start my own company, etc. There are also contractual terms prohibiting various conflicts of interest, such as owning a significant amount of shares in a competitor.
Read again why I wrote. Those prohibitions were carefully chosen by the law and purposely do not cover all the ways in which an employee could materially damage an employer (see this comment of mine https://news.ycombinator.com/item?id=50631593).