If you are looking for affordability, Spain is the better choice, requiring $2,900/mo compared to Costa Rica's $3,000. For tax optimization, Costa Rica is superior due to its "0% on Foreign Income" status.