Both Modric and Gerrard could play in multiple positions of the midfield role.
And Gerrard could also play elsewhere other than midfield, which makes him far more versatile. Don't remember Modric ever playing at right-back or as a second striker on occasions. Not only playing there but also still often being the best player on the pitch.