This has been asserted multiple times in CV (herehere, herehere, herehere and others).
These two tests statistics are clearly different, and result in different results for the actual test statistics, as well as for the p-valuesresult in different results for the actual test statistics, as well as for the p-values: 5.8481
for the $\chi^2$ and 2.4183
for the z-test, where $\small 2.4183^2=5.84817$ (thank you, @mark999). The p-value for the $\chi^2$ test is 0.01559
, while for the z-test is 0.0077
. The difference explained by two-tailed versus one-tailed: $\small 0.01559/2=0.007795$ (thank you @amoeba).