tl;dr Darwin didn't know the sea level goes up and down due to glaciers forming/melting
Decades ago, Hans Hass noticed that some atolls did not fit Darwin's model, and proposed that these formed because of better nutrient flow around the edges, but the prevalence of these flat-topped reefs suggests that is not the main story, either.