The most common dishwasher disaster is height: new floors go in, and suddenly the old opening is a quarter inch too short. Measure, tell me, and I'll sort it.
Top-down view. A dishwasher door and handle sit proud of the cabinet face. Put the unit tight to a corner and the drawer on the perpendicular run has to travel through that handle to open.
The shaded zone is the collision. The rule of thumb from the showroom floor: leave at least a 2-3″ filler between a dishwasher and a corner, more if the handle is a pro-style bar.
Because the floor came up and the opening got shorter. A standard dishwasher needs about 34 inches of opening height, and new tile or engineered wood over the old subfloor can eat the half inch that used to be spare. It is the single most common dishwasher install failure. Measure from the finished floor to the underside of the countertop, not from the old floor, and if you are already short, ADA and low-profile models fit down to roughly 32.5 inches.
Standard ones are, nominally: the opening is 24 inches and the machine is slightly under so it can slide in. Compact 18-inch models exist for small kitchens and bar areas. Width is rarely what goes wrong, though. Height and the door-open depth in front of the machine are what catch people out.
One built to take a custom door panel matching your cabinets, so the machine disappears into the run. Manufacturers also call it fully integrated. It is a different purchase from a stainless front, and the panel is usually made by your cabinet maker, so it needs deciding before the cabinets are ordered rather than after.