I’d replace it, if there’s a dent then there’s compression in the shell and as the shell is designed to compress on impact, absorbing impact force, it’s done it’s job and shouldn’t be asked to do it again.
I’m sure there will be posters on here who will tell you they still ride in helmets that have had much greater impacts but that their head not yours.
surpose it depends on how much you use your head, can you afford to damage it if you have another crash and the helmet fails to absorb the impact forces.
Take it back to where you bought it see if they do a crash replacement deal (I know Spez do – wife crashed her lid we took it back to LBS and they did us a deal on a replacement the damaged one went back to Spez for research purposes)