It used to be that it will hide variations that are out of stock.
After the last session of updates, it might take a couple of seconds for the variations to disappear, and sometimes the variations are still visible yet there will be a message that blocks the user from ordering the unavailable variation.