The best comparison is:
The electromagnet with 40 coils will be stronger than the electromagnet with 20 coils.
This is because the strength of an electromagnet is generally proportional to the number of coils of wire wrapped around its core; more coils create a stronger magnetic field. However, it is important to note that the strength may not be exactly double, but it will be stronger with more coils.