Hide product's price if product contains a Comparison Set
The following code will hide a product's price if the product has a cached Comparison Set.
This will only work if the product has a cached Comparison Set and only on the single product page, not on category or archive pages.
Create a custom plugin
If you haven't done so already, create a custom plugin.
Add custom code
Add the following code to your custom plugin:
Save your changes.