Every room puts different demands on a floor. Kitchens and bathrooms deal with moisture and spills, so tile, vinyl plank or sealed hardwood tend to hold up better than carpet. Bedrooms and living rooms are more about comfort underfoot, which is where carpet or engineered hardwood usually wins out.
High-traffic areas like entryways and hallways need something that resists scuffing — porcelain tile and laminate are common choices there. Basements bring their own concerns around moisture from below, which usually rules out solid hardwood in favor of vinyl plank or engineered options rated for below-grade installs.
The short version: match the floor to how the room actually gets used, not just how you want it to look.