A gateway and a route table answer different questions. A gateway supplies a particular network path, while a route rule identifies where traffic for a destination should go. Creating either resource doesn't associate every subnet with it or establish an application connection.
These yard tasks configure internet or NAT gateway intent and verify that a route points to a gateway in the same VCN. NAT egress is different from accepting new inbound internet connections. Service gateways and dynamic routing are discussed as separate design paths because their operations aren't implemented here. The browser never sends a packet. Production verification still needs the intended association, address, security controls, name resolution and destination listener checked together.
Choose the gateway for the path and verify the route association separately.