I’m transcribing a piano part. I initially wrote it this way (for clarity). In reality, if you listen to the example, the piano is played legato.
Does it make sense to write it as in the first example (indicating only the sustain pedal) or as in this example?
The goal is for musicians to be able to read it at first sight
Example:

