No they are not the same external bore size, that's why they have a different blocks.
And increasing the bore size will not gain you much HP as you would also need to increase the valve size to get a true gain.
Even if you did it, the best gain would only be 1 or 2 HP max anyways.
Your best bet for uping the HP is find a D850 or D950.
Surprisingly the D850's go up higher in HP than the D950's, I have a 22HP D850 in one of my B7100's and I have a 19HP D950 in another.
You want a complete engine as the heads are also different, in that the valve size increases tremendously as the bore size increases.
All other parts like the oil pan and hydraulic pumps will bolt right on it.