Both sources you link to say Allen and Gates pulled listings of the PDP-10 operating system out (probably DEC's TOPS-10?) of the trash. BASIC is not an operating system. So your claim is debunked by your own sources.
"...digging out the operating system listings from the trash and studying those. Really not just banging away to find bugs like monkeys[laughs], but actually studying the code to see what was wrong."
https://americanhistory.si.edu/comphist/gates.htm
"...He and Bill would go “dumpster diving” in C-Cubed’s garbage to find discarded printouts with source code for the machine’s operating system..."
Microsoft basic wasn't the first basic interpreter which is a different claim than Microsoft basic source was copied from another interpreter.
"The Altair BASIC interpreter was developed by Microsoft founders Paul Allen and Bill Gates using a self-written Intel 8080 emulator running on a PDP-10 minicomputer."
No matter where you think the code came from, the impact of Microsoft BASIC was huge, and they were first to the market.
And DEC was in Massachusetts, Bill Gates went to high school in Washington. That would be one hell of a road trip to dig into DEC's trash.
https://floppydays.libsyn.com/floppy-days-113-monte-davidoff...
Starts after about the first 15 minutes.