Hello,
Unfortunately, we don’t have option to hide out of tock variations there only.
Swatches code you can find in et-core-plugin\packages\st-woo-swatches\st-woo-swatches.php. Remove sten_wc_cart_attribute_html filter in child theme to disable our swatches code. And add your own filter that will display things that you need.
Regards