Which solution is better?

1