To be certain, you need to identify the exact transmission in both the 1995 and 1998 Tahoe. Look for a tag on the transmission itself or consult your vehicle's documentation. Once you have the transmission identification codes, you can compare them, or consult a parts database or a mechanic specializing in these vehicles.
Even if the transmission identification codes appear to be the same, there might be minor differences that could prevent a direct fit. Professional advice is recommended before attempting this swap.