A dishwasher that fits the cabinet and the household is a matter of measurements and habits, not the claims on the box. Walk the kitchen with the household's real routine in mind before you choose a model.
Count the load the household makes
Write down what goes into the sink on a typical day. Include the pots, the serving pieces, and the cutting boards that some racks will not hold. A household that cooks from scratch every night loads a machine differently from one that rinses and stacks. Note which pieces will not fit the racks you would be buying.
Decide how often it runs
Note whether the machine will run every day, several times a week, or only when full. The run pattern changes how much use the parts see and how much water and detergent the household goes through. Decide this before you read any spec sheet, so you can compare models against your own pattern.
Measure the cabinet opening
Measure the width of the opening, the height from the floor to the countertop, and the depth from the cabinet face to the back wall. Check the toe kick and the clearance for the door when it drops open. Look at the cabinet floor for the room the lower rack needs to slide out. Measure the depth again at the wall, because pipes and outlets can take up space.
Check water, drain, and power
Find where the supply line will come from and whether it reaches the machine's inlet without a new run. Find the drain path and confirm what the local code requires for a high loop or an air gap. If a disposal is connected, check which knockout the drain line uses. Check the outlet location and whether a cord can reach it without strain.
Compare on your measurements
Bring the measurements and the household's dish count to the store or to the installer's quote. Compare models by whether the rack, the opening, and the drain fit your house, not by feature names. Keep the measurements with the install records so the next owner can see what the cabinet allows. The dishwasher page gives the typical service life and turns the install year into a planning window.