most inspectors I’ve spoken with will lower the insulation requirement if it means that the finished attic will have the required headroom. To get the most R-value with the least thickness, use ...
Proper attic insulation ... as this reduces its insulating ability. For blown-in insulation, aim for uniform coverage and use depth rulers to check the insulation's thickness as you go.