Revert "[set-digest] Branch-free tests (#5469)" (#5470) This reverts commit a4d4c41023dd738d35f2e917d8deea2b473a38aa. That commit had slowed down clang by 3% while sped up gcc by 3%. Revert, to keep the code *intention* clear. Rely on compiler to avoid branches if it sees fit.