Nicaragua is the only country that grants you permanent residency right away. Most countries, including Panama, start with temporary residency and then allow you to upgrade to permanent status. Like Panama, you can apply for citizenship after 5 years of residency.