You are simply picking a measure (immigration) and saying that “being better at my measure that I picked equals being better, period.” What if I threaten all my neighboring countries with nuclear annihilation unless all their citizens move to my country, so that I will be sure to top your list of greatest countries?
Be careful what you optimize for. ;)