system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Can you put an electron in a nucleus?

I'm thinking the negative charge would attract more protons and allow a larger nucleus and thus a larger element.
gpt
This is what happens during the formation of a neutron star. If the pressure gets too high, the electrons get "captured" by protons in the nucleus and create neutrons in the process.

Electron capture also happens in radioactive isotopes as an alternative form of decay.