I recently started using a pressure cooker (instant pot brand) to make hard cooked eggs. I use a 4 minute cooking time, instant release the pressure, then plunge the eggs right away into cold water to stop their cooking.
Even fresh eggs peel perfectly.