How to show different upsells based on selected & purchased product?

Can rely on this solution for the time being:

We are working on a native solution to do this without code.