You'll likely get more speed out of a DIY midmotor, especially with a BBSHD which is 1000W or more. DIY kits also have throttles, which aren't allowed on many Bosch/Shimano powered bikes. But power/speed may not be what mountain bikers want? I don't know, having never ridden my ebikes on anything other than a grassy walking path,
The Bosch/Shimano motors are controlled by pressure on the pedals. Maybe you like that better. A few mid drive kits also do this.
You get better battery integration in a commercial e-mtb. I see a lot of DYI bikes with batteries strapped onto the frames, and I wonder if they will fall off or crash against a rock.