If hitting "cancel" in the "Activities" tap isn't working, you can try the below option. It basically overwrites the previous one with another buy using the same "nonce", which is like a file name:
1. On Metamask, click on the circle icon on the top right, and go to Settings > Advanced > Reset Account