[inputs] Add __eq__ method to BaseInput for equality testing