Is it possible to receive shadow from some object and not others?

In material settings, one can toggle “Receive Shadows”, which entirely enables or disables shadows.

Is it possible to selectively receive shadows?
Precisely: can we achieve that object A receives shadow from object B and NOT from object C?

I was thinking using something like a layer mask, the same way as one can enable collision between some object and not others.

in mesh renderer there is both receive and cast shadows options.

if your case wants something like:
object A receives shadow from object B and NOT from object C; and object B should have shadow from C

then not really, since shadows are calulated with a texture, they don’t pass info about any specific objects.

you may also have some luck with light layers, but i’m on birp so i don’t know much about them.