Elspeth's Smite's replacement effect will exile the target creature or planeswalker if it would die this turn for any reason, not just due to lethal damage.
Elspeth's Smite deals 3 damage to target attacking or blocking creature. If that creature would die this turn, exile it instead.