I have a tankless, NG model, a Rinaai. I installed in the attic where the original tanked model was.
Please understand the realities of a tankless heater. Rarely will you save enough to offset the cost of them. Consumer reports published an article on this. Summary: there is no free lunch it cost X to heat water, the only saving is in the maintaining of the water. That is cheap the tankless is not.
Second the cold sandwich. Tankless heaters take a moment to heat the water. So, your wife takes a nice hot shower. You follow 10 minutes later. You immediately get hot water from the pipes, then cold water for a few seconds, then hot again. Sounds like no big deal but very irritating
Third, maintenance. Think of your coffee maker it slows down you clean it with vinegar. Same thing here. Once a year you use the isolating valves to pump vinegar thru it for an hour.
Fourth these work on rise so it will do fine in the summer when the input temp is 50 degrees but less so in the winter in PA when the input temp is lower
I use a tankless, I save 40% of my water heating cost and I do not have cold sandwiches.
I replaced the bad hot water heater and eliminated a second heater which heated only master BR and powder room water. I save pennies on the one I replaced but nearly all on the other.
I placed a 5 gallon tanked heater AFTER the tankless so there is a small bit of hot water on hand and whatever brief blast of cold sandwich is mixed in the tank. The five gallon runs very little after all of the income water is heated before it gets it.
I plan on improving my system further by placing a 50 gallon tank (with bypass valves for winter shut off) BEFORE the tankless. Since it is in an attic, in Alabama I will save quite a bit there too.
Is it worth it for you, maybe? You will save space and DIY is a huge savings. Reality is you can save nearly as much with a water heater blanket and a timer. Unless you have special requirements, think hard on why you want to do this.