fix: nondeterministic failure in `grind` (#6530)

This PR fixes nondeterministic failures in the (WIP) `grind` tactic.
6 files changed