Expense ratio is the advertised number
It is easy to compare and therefore over-weighted. Two funds tracking the same index with fees of 0.03 and 0.20 percent differ, but the difference is often smaller than the tracking error between them.
Tracking difference is the real cost
Compare the fund's actual return against the index return over several years. The gap includes the fee plus everything else: sampling, securities lending, and cash drag.
A fund with a higher fee can have a smaller tracking difference.
Liquidity and spread
An ETF trades like a stock. Wide spreads and thin volume mean your entry and exit cost more than the annual fee.
Look at average daily volume and typical spread, not just assets under management.
Index methodology
Cap weighting versus equal weighting
Different concentration profiles and different risk.
Replication versus sampling
Sampling can diverge from the index in ways that are not obvious until they are.
Rebalancing rules
Frequent rebalancing creates turnover and tax consequences.
What to check before buying
Assets under management for closure risk, average spread for trading cost, tracking difference over three years, and the index rules. Funds that are too small can be closed, forcing a taxable event at an inconvenient time.
The honest summary
For a long-term core holding, a large liquid fund with a low tracking difference is the right answer. Optimising the last two basis points of expense ratio while ignoring spread and tracking is not optimisation.