It also quickly becomes meaningless as people risking life and limb tend to flee to the nearest stable country. For example, Syrian refugees for the most part tended to stay close to their home country with the majority fleeing to nearby Turkey, Lebanon, Jordan, and Iraq--or, moving elsewhere within Syria.
Measuring wealth of a country by measuring how many refugees it takes in is like projecting future revenue/success of a convenience store by measuring how many people come into the store during an active-shooter situation.
Going by your metric, it would suggest that a Pole is wealthier than a Brit because Poland has nearly 1 million Ukrainian refugees to the UK's .25 mil.