Contrary to the Great Man version of how we mostly talk about history, scientific discoveries, technological breakthroughs and such have historically often occurred multiple times in multiple places often in close proximity time-wise but otherwise completely unrelated to each other. This of course makes sense if you consider that history seems to be primarily driven by material conditions (e.g. steam engines were known to Ancient Greece but their usefulness for industry simply hadn't occurred to them because they lacked the prerequisites to make them useful and neither economic efficiency nor access to cheap labor were significant enough concerns - plus there was no patent system of course).
I'll leave it up to you to decide whether one should expect the demographic of this website to be especially invested in the Great Man narrative but trying to convince them that two people can independently have similar-sounding ideas involving similar-but-different technology is probably an uphill battle. Just be glad you're not composing music for a living because there's literally an entire industry built around the idea that it's impossible for two people to come up with similar melodies without knowingly or unknowingly copying eachother and that it's very important that one of them (or rather the company they had to sign a deal with in order to make any money off their music at all) 100% owns that exact melody and should be paid by anyone who wants to use it.
Next time you have an idea you should just file a patent tbh - the insistence on prior art invalidating the work seems to be quite similar but at least if you're granted a patent you can shake down "copycats" for money.