If I want a defined attack, I use a pick.

Picks vary in material and thickness, nails don't.

Most of the time I play finger style. This varies from barely touching the string to striking and releasing it.

Sometimes I play the e-guitar of my son (yes some bassists do) and then it can be fun to hit the strings hard with the back of my nails, producing chords with an extra zing.