Nah I mean if you stick the bike in the stand and hold the back brake on then lean on the pedals can you get the noise? If so it might help you isolate where it’s coming from. It might not though!
Definitely worth making sure everything is nicely tight and greased – skewers, mech hanger as mentioned, cassette, make sure none of your chainring bolts are loose, make sure the cranks are nipped up correctly… But you’ve probably already checked all that.
I’m currently in the midst of a similar battle of wills with my bike… I was convinced it was the BB so I replaced it. It wasn’t. This afternoon I stripped, regreased and rebuilt everything in the suspension, and a quick ride up the road gives promising results. We’ll see.