Gen 5. Gen 4 was the logical conclusion of the series, complete with literal god as the final pokemon.
Gen 5 abandoned a japanese setting, had the worst designs in the franchise, had a fanfic tier story even by pokemon standards, and retarded shit like rotation battles.