You can't do exactly what you want. The problem is that however you cut round the lid, there will be some thickness which you turn into sawdust (the kerf). If we ignore the difficulty of cutting a stepped edge, it will end up like:
where the solid lines represent the edge of the hole, and the dotted lines the kerf. The ...