I've had good outcomes in determining whether an avocado was under-ripe by gently picking at the little nub where the fruit attached to the stem. That is more firmly attached when the fruit is under-ripe and as soon as it easily removes when picked at, I find the avocado is usually near perfect.