Sorry Iām just now seeing this! Posting a reply for future readers.
You can create a paid plan for each product. And then gate access to that specific product. When someone purchases the plan they will get access to whichever product is associated.
You can also do some custom code magic to make it more programmatic, but what I described above is the most simple solution.