Good question!
I got the impression that when it comes to hardware, MakeCode has a bit more choice. I don't think Scratch was really made for hardware oriented coding.
However you can in fact get solutions for it. You should check out MakeBlock: https://www.makeblock.com/software
They have something called mBlock which is some sort of modification of Scratch to make it work with the robot kits that MakeBlock make.
Only issue I have found with it when I used it a couple of years ago is that it lacked some polish. This is a Chinese company. They make really excellent robotic kits with very good manuals of great quality. But the software feels less polished to me. However it might be fine today. I don't know.
Their stuff is Arduino based, so in terms of hardware they follow a lot of widely used and good standards.