Shoppers usually have the habit of comparing products before making the purchase. Comparing products that fulfill similar needs helps shoppers to make educated buying decision. It is a vital feature an ecommerce store can provide which helps the buyer to compare the value of the products based on their specifications, quality and features.
But in case of selling products like clothing, footwear, etc. comparing products is not required and buying decision depends purely based on the size, choice, type of material, etc.
Magento 2, by default provides the functionality to compare products. But as discussed in the above scenario, comparing 2 shirts neither required nor useful and in that, the store owner requires to Disable Compare Products in Magento 2.
Here, I'm sharing the programmatic solution to disable compare products in Magento 2 for your help.