Here's one example of inaccuracy :-
Suppose a triangle $XYZ$ with sides $a=13$, $b=15$ and $c= 14$. We have to find a perpendicular to side $c$ passing from point $X$.
Image Link : https://i.stack.imgur.com/dmFSL.jpg
According to heron's formulae
$\text{Area} = \sqrt{s(s-a)(s-b)(s-c)}$
$A = \sqrt{21 \times 8 \times 7 \times 6}$
$A = 7 \times 3 \times 4$
$A = 84$
Now
$1/2 × \text{base} × \text{height} = 84$
$1/2 × 14 × h = 84$
$H = \dfrac{84}7$
$H = 12$
But by Pythagoras theorem :-
$H ^2 = P^2 + B^2$
Now let's suppose our expected answer is $d$ then (Refer image above ),
$(a+b)^2 = (2d)^2 + c^2$
$28 ^2 = (2d)^2 + 14^2$
$784 = 4d^2 + 196$
$4d^2 = 784 - 196$
$d^2 = 147$
$d = \sqrt{147}$
Which is not equal to $12$ Which proves inaccuracy
Here's what you mean:
You said:
$\Leftrightarrow (XY+XZ)^2=(XH+XH)^2+(HY+HZ)^2$
$\Leftrightarrow XY^2+XZ^2+2XY.XZ=XH^2+XH^2+2XH^2+HY^2+HZ^2+2HY.HZ$
$\Leftrightarrow XY^2+XZ^2+2XY.XZ=(XH^2+HY^2)+(XH^2+HZ^2)+2(XH^2+HY.HZ)$
$\Leftrightarrow XY^2+XZ^2+2XY.XZ=XY^2+XZ^2+2(XH^2+HY.HZ)$
$\Leftrightarrow XY.XZ=XH^2+HY.HZ$
This equality obviously is not true for $XH=12;XY=13;XZ=15;HY=5;HZ=9$, because it is impossible to prove the last equality in general, which means it is false.