Using Tilemap as sprite mask?

Basically I’m randomly populating a grid with square sprites and I want to use them as a mask to show the real textures. Do I have to create a sprite mask for every little square or is there a better way?

Did you find any solution to this problem?