Are you saying western democracies should have good relations with Erdogan because Erdogan has national security interests on his northern and eastern borders?
No. Real world politics is a difficult subject - The US has national security ‘interests’ on his borders with Russia, Iran, Armenia, and Georgia. We need those assets just as we have needed them for 60 years. We would lose more than we would gain by cutting off all relations with Turkey.
If you have not been there (the border regions), it is difficult to explain.