This is an old, old question for America -- the question of loyalty. Jews and Catholics have both faced it in the past. So, now I suppose it's the Muslims' turn.
It's not the same at all. Muslims can not recognize any other rule but Islamic rule. They can recognize a democracy like in Iraq that is based on Islamic principles but they are forbidden to take part in any other type of government unless they are in the process of conquering it.