Let's say I have 5 products that are identical but the product code, the product color specifications and the product image. The title, meta and description are identical (by the way the color is in a select form).
I made 4 products link canonical to the 1 that is the master based on many factors. If the master becomes inactive or without a stock one product from the other 4 will become the new master and the rest will become canonical to it.
The question is if that by becomeing master from canonical will the site suffer a penalty from Google or it will work just fine?
What will Google think about this strategy?