Pokémon Sun / Moon was originally planned to have a complete quest system with markers and its own sidequest list, some kind of downloadable content was also considered.
It took until Pokémon Legends: Arceus to finally have real sidequests in a Pokémon game.
More details on the scrapped gym building feature
Z-Moves were originally a mechanic called Aura Boost