magento2 – Is it possible to combine 2 different configurable products for color swatch

I have two configurable products (with sizes) and different colors. Can I combine them in a color swatch, so it switch to the other color?

Or is the best way to make one configurable product with different colors in it?

I can’t find a good (the best) solution for it.