The first thing to understand here is that these are arrangements. I don't know for what combination of instruments Piazzolla originally composed this piece, but you could for example imagine a violin playing the melody while an accordion plays the accompaniment. In this case the fact that the violin holds long notes while the accompaniment sometimes hits the same notes is not a problem.
When such a situation arises in a solo piano piece, you need to try out different solutions and make a decision that gives the best musical result. You may use pedal (including the sostenuto pedal if your piano has one), you may change the accompaniment figuration so that it doesn't hit the melody note, you may simply shorten the melody note...
The more you advance in piano literature, and particularly in transcriptions, the more you will come across things that, taken absolutely literally, are actually impossible to play. From the notation you can work out how the music should sound to your taste: what is melody, what is accompaniment, which voices should be brought out. It's up to you as a pianist to find the best way of creating that sound.
Neither of these arrangements lies easily for the piano. They are, quite honestly, way too hard for somebody who has been learning for two months. I would look for a simpler arrangement, or maybe find a backing track to which you could play the melody.