Despite the general teaching that only V and IV can lead to the tonic at a cadence, almost all chords can function in their place if properly substituted. The most compelling cadences often make use of either the raised 7th scale degree or lowered 6th, or both, but cadences can do fine without either.
Broadly speaking, chords which can substitute for the dominant have their root on an “odd number” – that is, 3, 5, and 7. Likewise, chords which can substitute for the subdominant are “evens” – that is, 2, 4, and 6. I would rank the difficulty of cadencing using each of these scale degrees as follows: 5 < 4 < 7 < 2 < 6 < 3. The challenge in working with 6 and 3 is that they are traditionally treated as pre-pre-dominants or pre-pre-pre-dominants. ♭VI is easily used if bridged by ♭VII, and iii may function as a passing escape-tone chord from V. Otherwise, ♭VI and ♭III can be used as third-relation chords. iii and vi on their own are so close to the tonic, note-wise, that it is nearly impossible to construct a compelling cadence with them.
Dominant-functioning chords for cadences: ♭III, iii in passing, V, v, ♭VII, ♭VII, viio7.
Subdominant-functioning chords: ♭II (N), iio, IV, iv, ♭VI
In total, the chords which I have found to compellingly cadence to the tonic in a piece ending scenario are: ♭II, iio, ♭III, IV, iv, V, v, ♭VI, ♭VII, ♭vii, viio7.
Now, isn’t that a much more fun selection to play with?
In order: Subdominants: IV, iv, ♭VI, ii∅7, ♭II. Dominants: V7, v7, viio7, ♭VII.