fix: case-splitting selection in `grind`

This PR fixes a bug in the function `selectNextSplit?` used in
`grind`. It was incorrectly computing the generation of each
candidate.

Closes #11697
4 files changed