Do pronounce ‘riding’ and ‘writing’ the same, or is the first longer?
I think there's an extremely subtle difference in length, plus in American english you might pronounce "writing" with either /d/ or /t/ (probably /d/ in casual speech).
I think if you said "I am riding a book" almost every native english speaker would hear "I am writing a book."
There are words which I do pronounce the "same" as each other - but do actually vary them on on length alone. These are mostly for "merged" words.
Ie:
"Mary" - longer sound on the "a" vowel than the "ry" sound
"Merry" - longer sound is the "ry" sound
"Marry" - is said like "Mary" except the "a" sound is even longer. "ry" sound is same length.
Part of me also wonders if the southern "drawl", where vowel sounds are extended, is actually a weird way of standardizing vowel length times across distinct phonemes. Though I wouldn't be surprised if there's still variation there too, but it would certainly be interesting to compare.