“Stainless steel” is a general description that covers a wide range of materials. Some would be suitable, some would not. Full size water tube boilers these days apparently sometimes use material that we would regard as stainless steel. But unless you really know your materials, it would be better to stick to the standard grades of steel used for boilers. The wrong grade of stainless is quite likely to be worse than normal material. Some grades are prone to chloride cracking.
Normal steel tubes should actually be able to last quite well, given a bit of attention to water treatment. Typically we don’t actually use our boilers enough, they spend too much time in storage, which is probably where the damage occurs. They should be either bone dry, which would be best, or chock full of deoxygenated water, which is OK for shorter idle periods. The worst is of course to be partly full of water, which will cause corrossion around the water line.
Conside how quickly a lathe bed can pick up a film of rust over winter, then remember that the boiler typically does not even have a film of oil to protect it. So a few rapid changes of temperature will soon kick off some corrosion in a boiler.
regards
John