It's «almost» identical because the fund will take a small management fee, you will have to pay annual taxes on capital gains (if you hold the
investment in a
taxable account), and because the fund has to
actually invest
in the underlying stocks, there will be small differences due to rounding and timing of the fund's trades.