Consider the figure below:
The two triangles are congruent by SAS criterion only.
If two right-angled triangles have their hypotenuses and one side equal, then the two triangles are congruent by SAS congruence rule.