Identifying a broken Rotary Encoder on guitar foot pedal
It is the same part. In particular, the side with the two pins indicate that there is a switch in the encoder. The only difference might be the number of clicks per revolution ( clicks per turn). But then it will only change the speed of incrementation/decrementation.