The relative stability of the two tautomers (two isomers differing how protons are bound) may be assessed from the equilibrium constant you may formulate for the two. Deriving from above illustration, it would be
to indicate that this is dynamic, with a back and forward reaction at microscopic level. Once formulated as such, you probably recall $\Delta{}_RG = -RT \ln{}K$ to relate between the sample temperature $T$, the universal gas constant $R$, the free reaction enthalpy $\Delta{}_RG$ and the equilibrium constant $K$.
Depending on the substrate, you may use spectroscopic evidence (e.g., $\ce{^1H}$-NMR spectroscopy) to assess the concentration of the two forms. Equally, based on prior work by others, there are databases to either list these values, or provide a prediction (i.e., an educated guess) about $K$. Knowing these equilibria is important to anticipate the likelihood of chemical reactions. It equally offers insight regarding the pharmaceuticals and their uptake, anabolism, interaction with the body (metabolism), and catabolism and eventual elimination, too.
One of the databases available to the public is Tautobase (2020JChemInfModel1085). It is implemented in the freely available DataWarrior program allowing you a search-by-(sub)structure. With some luck, one of the 1680 pairs matches your substrate closely enough, too. In the simplest case one may imagine, however, the amide is strongly favoured:
The database backs this particular entry with the publications 1998JAmChemSoc10359 and 2001JAmChemSoc2681.