Generally fewer moving parts are required, the parts necessary to make it work are simpler and easier to produce, it allows for a lower bore axis (although this is lost on most shooters), etc. The things that make a striker-fired design easier to produce generally make it easier to service as well.
or a hammer?
A number of companies have a history of producing successful hammer-fired handguns and haven’t really produced many successful striker-fired weapons. Sig, for example, has never made a striker-fired pistol to the best of my recollection. H&K has made several, but none were as commercially successful as their USP line of handguns.
Weaknesses? I think it’s fair to say that there are modern designs that are very good of both flavors - why did the engineers choose one vs. the other?
Firearms engineers are often attempting to respond to market forces. Many underestimate what a game changer the Glock has been in the world of handguns. The Glock manages to be that blend of a reliable, durable handgun at a very attractive price. The Glock is designed specifically to be produced at a very low cost. It requires a minimum of machine time on CNC machines. The frame for a Beretta 92, by comparison, starts out as a 2 pound chunk of aluminum (IIRC) that must be machined extensively to end up with the frame we would recognize. Machining a slide and barrel for a Glock handgun, molding the polymer parts and stamping out the small steel parts used likely takes less overall machine time than making that single part for a Beretta 92.
These efficiencies in production gave Glock a serious competitive advantage in the market. Because Glocks were cheaper, seemed to work really well, and were sold through some smart marketing practices by Glock Inc. (like offering sweetheart deals on trade-ins from PD’s) Glock gained in market share.
The end result of all of that is that now the handgun market is under the heavy influence of the Glock effect. The expectations people have about handguns have changed rather dramatically because of it. The smart companies who are releasing new handguns are going to potential customers and getting their feedback to help guide decisions on what to make. The S&W M&P is a good example of that process.
Smith wanted to take back some ground they lost to Glock. They hired smart people like Ernie Langdon and talked to people about what they would change about the Glock, then through an imperfect process turned the input of the smart people and customers into a handgun.
The engineers at Smith & Wesson went with a polymer-framed, striker-fired handgun because that’s a relatively inexpensive way to make a handgun that still works reasonably well. That allowed them to sell a gun at a competitive price point and use some of the Glock marketing playbook without losing their shirts in the process.
Do the choices and tradeoffs made at the engineering and design level have an effect on why we choose one pistol instead of another?
It depends on who you refer to with “we”. Most people are not buying handguns for the engineering. For the majority of the people purchasing handguns pricepoint is king. They are looking at perceived value for money. The engineering decisions made by a company can have a significant impact on the pricepoint and so that does play a role in the decision, but it’s generally invisible to the average person buying a handgun.
A certain percentage of the market unquestionably purchases X handgun vs. Y handgun because of a specific feature of the weapon or because they are more familiar with the operating system. as more people cut their teeth on Glocks, it comes to define what they expect the trigger pull, reset, controls, etc. are supposed to be like on a handgun. These folks are, I would argue, a relatively small percentage of the individual buyer’s market. Agency purchasers may take more of it into consideration due to concerns about maintenance and keeping a bunch of issue weapons up and running reliably for X number of officers/agents.