The scalene triangles with perimeter at most $17$ are $(2,3,4)$, $(2,4,5)$, $(3,4,5)$, $(2,5,6)$, $(3,4,6)$, $(2,6,7)$, $(3,5,6)$, $(4,5,6)$, $(2,7,8)$, $(3,5,7)$, $(3,6,7)$, $(4,5,7)$, $(3,6,8)$, $(4,5,8)$, $(4,6,7)$.
Removing the right triangle $(3,4,5)$ leaves $\boxed{14}$.