Both are Jolly, both have the exact same moveses, both have overall above average IVs,with both having good speed...
Riolu 1 is Impetuous and silly, and has Steadfast
Riolu 2 is Quick to flee, and has Inner Focus
The Riolu 2 would be the better choice. Mostly because Steadfast only increases speed when you flinch, and you don't flinch very often.