Sizing starts from the property
Before a heater is chosen in Sleepy Valley, two things get settled: what the household actually draws, and what the space will accept. A closet with no room to raise a flue and no clearance to combustibles rules out units a garage would take without argument.
Demand comes next. A 40-gallon tank serves two people who shower at different times and fails a family who all shower before work. Sizing to the old unit's label repeats whatever decision was made years ago, which may have been wrong then.
What the work has to get right
Venting to the manufacturer's specification for that exact unit, not the shortest route out. Strapping within the upper and lower thirds, the lower strap four inches clear of the controls. A relief valve with its discharge piped somewhere safe. A pan and drain where a leak would reach structure. Gas or electrical supply sized against the new heater.
Living with hard water afterwards
The city measures 240 mg/L of calcium carbonate, so a new install is the moment to set the maintenance habit: flushing a tank, descaling a tankless exchanger. Starting that on day one is cheaper than starting it after the first short shower.
The first days tell you
Hot water should last as long as the sizing said it would, the relief valve should stay dry, and no connection should smell of gas. Anything off is worth raising while the job is recent.