Don't optics help with the spread?
Yes, wider optics increase the spread at the expense of the light being less concentrated. Conversely more narrow optics focus the available light into a tighter area.
Light from LED's is directional but doesn't only go straight down. Without optics most LED's have a 120 degree beam angle with the greatest intensity of light at the center and getting progressively dimmer as you go out toward the edges. If you were to add 90 degree optics for example the beam angle is reduced by approximately 25% from 120 degrees and the amount of light concentrated in that area increases by a similar factor (though optics are not perfect and there is some loss).
Mounting height has a similar effect whereby mounting the light higher increases spread and reduces light and the opposite when mounted lower.
A good visual representation of this can be seen with a flashlight shown against a wall. The closer you get to the wall the smaller the lighted area and more light directed there. If you have a Maglite or similar flashlight with an adjustable lens you can stand in the same place and adjust the lens to observe the effect of having a wider beam angle or more narrow.
FWIW, both mounting height and optics need to be considered when picking out your LED fixture. The OP could use the 24" as originally planned but it would need to be mounted pretty high to get decent coverage over the edges of the tank. So high that I expect the light will be bleeding over the front and back of the tank and would be a distraction in the room. Personally I would go with the 32" so the mounting height can be kept reasonable.