Drag on Drop targeting specific layers

I have a working factory that uses collider boxes to detected products (tag) that they should act upon. The player must be able to get products from the assembly line by clicking on them. However, the OnMouseDown function keeps getting the triggers and not the product.

Any ideas?

Thanks very much in advance!

Hi there! I found a workaround but still am not satisfied with it. Since OnMouseDown ignores layers marked as Ignore Raycast.

This is not the best solution because I might need to be able to click one of these layers. If anyone knows best, let me know.