TSMC has a dominant market share and is expanding its footprint in Arizona.
ASML makes advanced lithography machines that are vital for crafting tiny components and designs on silicon chips.
I have long thought that one of the best ways to invest in artificial intelligence (AI) and its infrastructure is to find a company that provides a product or service so compelling that it essentially dwarfs the competition. That's why two of my favorite stocks in the semiconductor supply chain are Taiwan Semiconductor Manufacturing (NYSE: TSM) and ASML (NASDAQ: ASML).
Both of these companies have been more-than-solid winners over the last five years, with net income for Taiwan Semiconductor (TSMC for short) rising 251% in that time, and revenue increasing by 165%. ASML has been strong as well, with better than 90% gains in both net income and revenue.
Where to invest $1,000 right now? Our analyst team just revealed what they believe are the 10 best stocks to buy right now, when you join Stock Advisor. See the stocks »
Their shares in the last five years have outpaced the tech-heavy Nasdaq Composite by a wide margin.

TSM data by YCharts.
Both of these AI stocks have been great investments. But as we look forward, which appears to be the better AI play?
Image source: The Motley Fool.
TSMC is the world's largest semiconductor chip manufacturer. The company is estimated to have 73% of the global foundry market, up from 69% in the fourth quarter of 2024. It fabricated more than 12,600 different products in 2025, using 305 different process technologies.
Its latest manufacturing technology is the 2-nanometer process, which offers higher density and energy efficiency. The company has been a leader in developing advanced fabrication abilities, with its 3-nm and 5-nm technologies generating more than 60% of its revenue in recent quarters. It brought in revenue for its 2-nm process for the first time in the most recent quarter.
|
Process Technology Share |
Q2 2026 |
Q2 2025 |
Q2 2024 |
|---|---|---|---|
|
2-nm |
3% |
0% |
0% |
|
3-nm |
30% |
24% |
15% |
|
5-nm |
33% |
36% |
35% |
|
7-nm |
11% |
14% |
17% |
|
All others |
23% |
26% |
33% |
Data source: TSMC.
TSMC also announced a $100 billion expansion of its factory in Arizona, which would support advanced packaging fabs and its 2-nm processing technology.
Revenue in the second quarter was $40.2 billion, up 33.7% from a year ago, and the company's net profit margin was 55.6%.
As important as TSMC is to the semiconductor supply chain, ASML makes the job much easier. The Dutch company makes machines that TSMC and other foundries need to produce minuscule circuits and components etched on semiconductor chips.
Most chip manufacturing relies on deep ultraviolet (DUV) technology and lenses to focus tiny light beams to make microscopic circuit patterns on silicon wafers. ASML sells DUV machines, but it also sells more-advanced extreme ultraviolet (EUV) technology that uses mirrors instead of lenses. That greater precision allows EUV machines to perform tasks that DUV machines cannot.
ASML sold 86 new lithography units and five used units in the second quarter, up from 67 new machines and 12 used lithography machines a year ago. That helped revenue jump substantially to 9.32 billion euros ($10.69 billion), up 11% from a year ago. Net income was 2.91 billion euros ($3.16 billion), up 5.8%, and gross margins were 54%.
CEO Christophe Fouquet said:
Ongoing AI-related investments and continued progress in AI technologies are driving demand for advanced logic and memory chips, further strengthening the semiconductor industry's growth outlook. Our customers, in turn, continue to accelerate their capacity expansion plans. This is translating into customer commitments across our product portfolio, providing ASML with increased visibility into longer-term demand.
Let's be clear: There's not a bad choice here. But if I'm picking just one, I lean toward TSMC. Its increasing leadership in chip manufacturing, expansion plans, leading technology, and central role in fabricating advanced AI processors give it the edge in this head-to-head matchup.
Before you buy stock in Taiwan Semiconductor Manufacturing, consider this:
The Motley Fool Stock Advisor analyst team just identified what they believe are the 10 best stocks for investors to buy now… and Taiwan Semiconductor Manufacturing wasn’t one of them. The 10 stocks that made the cut could produce monster returns in the coming years.
Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you’d have $386,727!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you’d have $1,232,139!*
Now, it’s worth noting Stock Advisor’s total average return is 906% — a market-crushing outperformance compared to 208% for the S&P 500. Don't miss the latest top 10 list, available with Stock Advisor, and join an investing community built by individual investors for individual investors.
See the 10 stocks »
*Stock Advisor returns as of August 2, 2026.
Patrick Sanders has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends ASML and Taiwan Semiconductor Manufacturing. The Motley Fool has a disclosure policy.