It is all a matter of the intended and needed function of the fastener. Doing mostly commercial work, we use screws almost exclusively (metal studs, blocking, etc.) but I can't imagine the costs to frame a house with screws. That being said, screws and PE glue on sub-floor have virtually eliminated squeaking floor systems (something some people are nostalgic for). I find the pullout power of screws far superior to nails, but if not sized properly, they will shear faster than a nail in some applications.
The popularity of screws and their subsequent price reductions, along with the advent of cordless drills, impact drivers, and corded screw guns have made them a more goto fastener for building applications than 10 years ago. Drywall nailing has virtually become a thing of the past because of it.
FWIW, I have a drywall bucket full of 16d coated nails that were bought for a project 6 years ago. I haven't made a dent in them yet - but I haven't thrown them away, either.