the same compact size: they just aren't manufactured anymore. The size mattered, because of the location of the water heater. So I had to decide whether to (1) switch to a compact electric heater (2) move to a larger gas heater in a different location or (3) go tankless
I went tankless. Frankly, it was rather more expensive to install than my electric option; comparing to my gas option is tricky, because that might have required some basement remodeling. I do notice the reduction in my gas bill, but the expected time for it to pay for itself might be two decades
Overall, I am happy with it, but there are a possible few issues. First, the tankless heater is much further from point-of-use than the old heater was, so I waste more water running the tap when I need hot water. Second, the maximum water temperature limit is set a bit lower than I might like; this was a choice I made during installation; the water temp is fine for all my standard uses, but if I wanted really really hot water from the tap, I couldn't get it myself by tinkering with the inside temperature control and would need to have the upper temperature limit adjusted by a pro. Third, the heater has a delay before kicking in, so I don't waste gas when somebody briefly turns on the hot faucet to rinse their fingers; this means that if I turn off the water briefly in the middle of a shower and then turn it back on, there's a little chunk of colder water down the pipe that reaches me a minute or two later