As I said tertiary butanol is sterically encumbered and will not displace X from RX.
Ethanol is not sterically encumbered and will displace X from RX. This is a famous named reaction.
So the bulkier the nucleophile the worse it reacts in a displacement reaction, therefore, it will tend to act as a base and cause elimination.