Shower תקנת עזרא

Can a man take a shower (תשעה קבין) instead of going to the mikveh for תקנת עזרא?

It works

Is it better to go to the Mikveh?

It’s all optional but my understanding is there is a greater benefit in going to an actual Mikveh.