if you didnt like, read a particular story and think 'oh yeah im using that' you cannot be a thief, or a plagiarist
coincidental similarities exist, a lot of ideas have already been done and i dont think new writers esp should be worried abt being derivative - and certainly not derivative of things theyve never actually read or watched
this idea is popular bc theres a lot of great philosophical content as you mentioned, for a writer theres a lot to mine and for a reader theres a lot to take from it. and youre you - you have your own experiences, opinions, biases, that nobody else has and that will make your story inimitable.
however, i recommend you read / watch those other stories with a similar concept - see what they do, well and wrong, where they take the idea, look for the places where youre going 'but what about x???' zoom in on x, thats your unique take.