Algebraic uniqueness of Kähler–Ricci flow limits and optimal degenerations of Fano varieties