Ensure that the products have the option: When out of stock -> Default (in the Quantities section) to get the Default configuration (in this case, Deny orders). With this configuration, the unavailable stock combinations will not appear in the Product page