Older workers fair better in countries that invest more in healthcare resources