The brightest stars in the Magellanic Clouds and other late-type galaxies