Dishwashers come in standard sizes. Your old one is 60 CM wide and made for built in.
https://www.bosch-home.ca/en/supportdetail/product/SGU4025AU/31
DISHWASHER 60 CM BUILT-IN/BUILT-UNDERSGU4025AU/31
As long as the new one is also for built in, the dishwasher will fit. Measure the height of the space you have. There may be a little height adjustment on the feet.
..
The humming is indicative that the start / run capacitor on the pump motor has failed. The capacitor gives the motor a voltage bump to get it turning. Make sure you choose the right one for the make model and country. One of the images says 450 volts and most are for refrigerators!https://www.google.com/search?q=kelvinator+kd12mm1+capacitor+replacement..