I've do both in a professional manner. The truth is that both will scratch and wear with use. If you bang your rifle against a hard object hard enough to scratch the metal, you'll scratch the coating.
Cerakote is more durable and is chemical resistant to almost anything out there. However to get intricate patterns and designs its take much much longer and so cost will be more, also you cant touch up Cerakote without stripping it all and starting over again. (I am currently looking at KG Gunkote as it applies even thinner and can be touched up after curing)
Hydro Dipping/Water Transfer Printing is also very durable, but that depends on the clearcoat used. Some are more wear and chemical resistant than others. It is a better cost alternative to Cerakote when wanting to do more than a solid color. It is also thicker than Cerakote when applied as there is at minimum 3 different layers.

