You knew what the trap was before the party got to it.
You could have either not used the trap or replaced it with a different trap.
The party was just responding to what they encountered. If you are familiar with the parties dynamics, you knew that they would have used mage hand.
If it was a kobold and they just stabbed it, is that a boring use of an attack?
Mage hand was the hammer they had to deal with the nail that was the trap.
Maybe I don't know what it is you are trying to convey.
Is this another one of those "man i hate D&D but i love it so much" type things?
Are there other systems that do traps better?
Were like 100 years into 5e....everyone knows you can't hurt a party with 3 dragons, a sharknado and the flu at once, let alone a gas trap.