زَيْدٌ شَاعِرٌ لَا كَاتِبٌ
Zayd is a poet, not a writer.
Here coordinating lā simply contrasts an affirmed and a denied predicate.
مَا زَيْدٌ غَيْرُ شَاعِرٍ لَا كَاتِبٍ
“Zayd is nothing except a poet, not a writer” is the combination excluded by the discussed rule.
The particle lā appears in both cases. In the first it introduces an ordinary contrast; in the second the restrictive ghayr-construction has already excluded the alternatives. The syntactic setting, not the mere presence of lā, controls the ruling.