It's probably not competition that causes stack ranking to be a bad idea -- it's the measures that determine the ranking. Valve's flat hierarchy probably means that you only need to earn the respect of your peers, not of a group of managers that determine the rankings. I could see a situation in which a truly engineering-driven culture combined with stack ranking would become a meritocracy that rewarded the best engineers.