Often it is easier for DIY projects, to pick the enclosure you want and THEN pick the PCB size that fits perfectly in it, routing around things like the studs the case is held together with, and that the board mounts to if not slots, and maybe the PCB ends up with some empty space on it too...