Bottom line up front: You don't get absorption phenomena with a single free electron. You need to look at a system such as an atom or a crystal, in which there are more complicated dynamics at play than electron-photon scattering.
A free electron interacts with photons by scattering that photon into some direction (with very high probability, at "reasonable" energies; in general there are other processes that could occur such as $e\gamma\rightarrow e \mu\bar\mu$). The electron does not absorb a photon. (I am ignoring the issue of "soft photons" mentioned in one of the answers linked by the OP, which in my opinion not related to the question the OP is asking).
A Hydrogen atom consisting of an electron orbiting a proton can absorb a photon. This will happen if the photon's energy is close to one of a certain discrete set of energy values that the electron can transition from one state of the Hydrogen atom to another. Alternatively, the photon can ionize the Hydrogen atom if it has more than the binding energy of Hydrogen, $13.6\ {\rm eV}$, since then the photon can excite a (ground state) electron to an unbound state. A similar story works for more complicated atoms, although the calculations are much more difficult.
In a solid crystal, you have to remember that the electrons are not just bound to a single nucleus, but that the nuclei share the electrons, forming a kind of sea. How a photon will interact with the crystal will depend on the properties of this sea. In particular, the available energy states of the crystal tend to form bands of allowable energies, separated by gaps of unallowable energies. A metal is a solid where the most energetic electrons in equilibrium are in the bottom or middle of a band. It is easy for photons to scatter off of these in-band electrons, since the electrons can absorb an arbitrarily small amount of energy while still remaining in an allowed energy state. An insulator is a solid where the most energetic electrons are near the top of the band. Then it is hard for a photon to interact with the electrons, because a photon needs to have enough energy to excite the electron above the gap into the next band. Thus insulators tend to be transparent. However, photons with an energy close to the band gap can interact strongly with the material, and so the insulator may be opaque at discrete frequencies. Finally, there are also materials with impurities which can scatter photons in random directions, and then appear to opaque.