I have a similar query. However in my case if the out of stock item is discontinued the page is removed but available product variations may remain.
What happens in the case where my canonical is out of stock and the page removed but other product variations are available?
Thanks,