There is a great difference between the military/industrial contexts of the German and the Japanese battleships. The German ones were a “white elephant” of a country which did not fully develop its navy, relying mostly on its cheaply produced U-boat fleet. Pretty to look at, but not really useful for the task it was designed for all by its lonesome. The Bismark didn’t have much of a supporting fleet to work with.
The Japanese ships were part of decades long naval buildup which included naval aviation assets (which the Germans had nothing remotely close to). The Yamato would be most likely part of a panopoly of cruisers and destroyers and probably with a carrier. The Bismark would be shot full of torpedoes long before it ever got to train its guns on Yamato.