An underripe avocado makes bad guacamole no matter what you do. The flesh should be yellow-green all the way through, with no white or firm spots. If in doubt, wait another day.
Putting the pit in the bowl doesn’t prevent browning — lime juice and plastic wrap pressed directly onto the surface does. If storing, smooth the top flat, squeeze lime over it, and press wrap flush against the guac before sealing.