Not 100% sure but the one on the bottom looks like it is a 13-32 cassette vs the original on the top which is an 11-32 Freewheel (not a cassette). You need a 13-32t or 11-32t threaded freewheel. Does the bottom one have threads when viewed from the back?
13-32 freewheels are easy to find and...