You want a transparent shader with a separate depth pass. Like this:
Transparent shader with depth writes
However you don’t want to use that shader, but rather a Surface shader with the separate depth only pass. There are some examples scattered across the forums, like in this thread:
Also this one that is a modified version of the Standard shader with the same added depth only pass.