Iran has an elected President. Iran allows for protests against the government. Iran does not have nuclear weapons and is years away from having the capability to build them.Iran has not declared war with any country.
North Korea has a dictator who doesn’t hold elections. North Korea does not allow protests of any kind. North Korea has multiple nuclear weapons. North Korea is still at war with South Korea.
But Iran is the threat and should be preemptively attacked.