Hmm. He could also have braked to avoid a collision.
Initially, I was as outraged as everyone else about the penalty, but on reflection I think it was correct. He had all 4 wheels off the track on an inside corner - that is surely "gaining an advantage"? Kimi did leave a gap, but rectified...