Yes, the problem is when the option to show variations of the variable product as simple products on the shop page is enabled.
I want that by default in the entire shop, out-of-stock products are never displayed.
https://prnt.sc/EDXClGTLbqzO
https://prnt.sc/38TPu95CGy3u
Thanks