Tridents make the hitting sound when thrown at an entity that is immune to projectiles (such as closed shulkers, Withers under half health, Ender Dragons perched on the exit portal, or entities with Invulnerable:1b while in Survival mode). This is inconsistent with arrows which bounce off without any sound.
Confirmed for 1.13.2-pre2.