How can I use a variable to define other variables ?

The JS switch statement would be a more efficient way to do this.

 switch (sel) {
    case "instrument":
        instrumentOptionHits = 0;
        break;
    case "gnss":
        gnssOptionHits = 0;
        break;
    case "surveyor2":
        surveyor2OptionHits = 0;
        break;
    case "rt4":
        rt4OptionHits = 0;
        break;
}