Why Box-Pierce was replaced
Both statistics test the same hypothesis and differ only in a weight. On large samples they agree; at the sizes people actually have, they do not.
Sixty white-noise observations, twelve lags: Q = 13.5477 against Box-Pierce’s 11.3277. The Ljung-Box statistic is 19.6% larger.
The p-values are 0.33052 and 0.50107. On data where nothing is happening, that is harmless. On data near a decision boundary it is not.
The weight is (n+2)/(n−k), which exceeds 1 at every lag. So Ljung-Box is always the larger, and the verification suite asserts that ordering on 150 generated series.
The correction exists because Box-Pierce’s chi-square approximation is poor when h is a meaningful fraction of n. It under-rejects, which is the direction that lets a misspecified model through.