What if every outcome is a success or failure?
The pooled variation is zero, so this z statistic is undefined.
Enter successes and total observations for two independent groups. See both percentages, their difference and the test statistic.
Add both success counts and divide by both group sizes. Use this pooled rate to calculate the standard error for the equal-rates null hypothesis.
The numerator is first proportion minus second. Choose a direction based on the question. The normal approximation depends on the expected success and failure counts.
The pooled variation is zero, so this z statistic is undefined.
This compares independent groups. A paired binary design requires a different test.