Dharma is greater than patriotism. Patriotism is not to be conflated with Dharma.
This is best explained with the help of Vibhishina’s siding with Sri Rama (i.e. Dharma) instead of Ravana.
Before the was Vibhishina insisted on returning Sita Mata as it was the right thing to do
किम् च राक्षस राजस्य रामेण अपकृतम् पुरा |
आजहार जन स्थानाद् यस्य भार्याम् यशस्वि...