This is a very confusing issue, but these subtle rules apply:
A version of MacOS that is OLDER than the original-release software for a particular model Mac cannot possibly run on that Mac, because the newest drivers for its new hardware are not included. (Also, you must use release numbers, like 17E56 not just revision numbers 10.13.2 to make a completely accurate assessment.)
The instance of MacOS that "shipped in the box" with a specific computer works with that model only -- it does not have "drivers for every appropriate model Mac" so will not run on different models. Any updates you perform on that MacOS software, including re-install of the same major version, will still have only drivers for that model Mac.
--------
For Mac OS X, any version "purchased" (even for $0) and tagged with your Apple-ID will have Drivers for every appropriate model Mac. MacOS X default is to install all drivers into the system directories, and selectively load the ones needed at Startup Time.
[The Master Installer "Full Retail" CD/DVD version for purchased OS9 also contained all drivers, but the Installer default was to install for a specific Model Mac, and the option to install the bigger version with "drivers for every appropriate model Mac" was there only as an option, and difficult to access directly. So OS9 drivers were generally selected at Install-time, unless you took pains to do it the other way.]