Even though Luffy's Gear 5 is the most powerful of all other power-ups in the One Piece universe, it can't defeat Goku UI for the time being. Firstly, Goku has taken several years to master the Ultra Instinct abilities, and secondly, he has beaten Jiren, who is considered the most powerful being in the multiverse.