I wanted to overrid:
vendor/magento/module-catalog/Model/ResourceModel/Product/Compare/Item/Collection.php
so I copied it to:
app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php
But the override is not working.
Please let me know how I can override it without creating a new module.
Thank you!