Core mechanic is the definition you described. The mechanic on which the entire game is built upon, and other mechanics enhance.
Stats are the most integral part of an RPG, and all RPGs use Player Stats in them. Alteration to those stats, and the stats being linked to gameplay, are the core mechanic that make an RPG an RPG.
If you want to get more specific about genre, like jRPG, then you can add things like "World Map Mechanics" but not every RPG has a world map, so it is not contributing to the discussion.
Combat itself doesn't make an RPG an RPG either. Many games do not use combat. Infact, you could make an entire D&D session out of non-combat encounters.
So combat isn't a core of an RPG either.
The middle line, to make it more clear since it wasn't worded well, is that the entire sentence wasn't the issue, but rather the word stat wasn't specific enough.
Stats in an RPG must influence a dynamic outcome in some capacity.
The stats must be a part of the PC, or protagonist.
The stats should be tied to the gameplay as a core mechanic of play.
These simple mechanics should be enough for all games.
@Pine Towers The reason why I do not include "Playing a Role" or anything of the sort in this definition is because that characteristic can be inherent in all video games of all genres, and does not define the RPG genre itself.
Rather, it's a common misconception due to the naming of the genre.