Two ASX shares I believe are well positioned to benefit from the growing demand for data centres because of artificial intelligence (AI) are NextDC Ltd (ASX: NXT) and Goodman Group (ASX: GMG).
I can see both companies becoming considerably larger businesses over the next decade as investment in digital infrastructure continues.
But if I could only add one of them to my portfolio today, which would I choose?
One of the reasons I remain bullish on NextDC is the extent of future growth the company has already secured through customer contracts.
When NextDC released its FY26 results, it was billing customers for 175 megawatts (MW) of capacity but had approximately 740MW under contract on a pro forma basis.
That's more than four times the capacity it was generating revenue from at the end of the financial year.
I think this gives investors some insight into how much larger NextDC's earnings could become without the firm needing to win another major customer contract.
However, getting there will be expensive. NextDC's latest guidance points to capital expenditure of between $4.5 billion and $5 billion in FY27, compared with expected underlying EBITDA of $260 million to $275 million.
At the midpoint of these ranges, NextDC will be spending almost 18 times its annual EBITDA on capital expenditure this financial year.
While much of this investment should generate earnings for years to come, it highlights how reliant NextDC is on external funding during this stage of its growth.
I think the potential returns from owning NextDC shares could be excellent, but shareholders are taking on greater financial and execution risks to access that growth.
What I like about Goodman shares is that investors can gain exposure to the same structural growth opportunity through an already highly profitable and diversified business.
Its established industrial property operations and funds management platform provide an earnings base from which to pursue its data centre ambitions.
According to its November operational update, Goodman now has a global power bank of 6.6 gigawatts (GW), of which 3.6GW is secured.
With access to power becoming one of the biggest barriers to data centre development, I believe this portfolio could become increasingly valuable.
Goodman's ability to share development costs with its capital partners also gives it greater financial flexibility when pursuing these opportunities.
And I think Goodman shares are reasonably priced given its growth prospects. At around $28.77, Goodman shares are trading on a price-to-earnings (PE) ratio of approximately 22 times FY27 earnings, falling to just over 17 times FY29 earnings, based on CommSec consensus forecasts.
Even if the market were only willing to pay 20 times earnings in a couple of years, the forecast FY29 earnings of $1.67 per share would support a share price of $33.40.
That represents potential upside of 16%, before dividends, without requiring a higher earnings multiple than investors are paying today.
I would happily buy both ASX shares, and I suspect NextDC could deliver the greater returns over the next decade if everything goes to plan.
Sources indicate that however, if I could only choose one, it would be Goodman. I prefer its valuation, financial flexibility, and the diversity of its earnings.
And following its recent joint acquisition of a 9.9% stake in NextDC with Digital Realty Trust (NYSE: DLR), I would still have a small amount of exposure to NextDC's success through owning Goodman shares.
