Being an illiberal country isn’t necessary incompatible with NATO membership–just ask the Poles. NATO members, however, have an obligation to follow the NATO line with regard to Russia. If they cannot be trusted in a time of conflict, they shouldn’t be part of the alliance.
Erdogan has already made it clear that he wants the benefits of membership without its obligations. That means he might even pass NATO military secrets on to Putin in the event of a conflict. Orban’s Hungary appears to be moving in the same direction.
We should not tolerate potential Trojan horses within the alliance. Erdogan and Orban should be told to shape up or face the bear without our assistance.