There's no single "first RPG"—it depends on definition. Key contenders:
All contributed essential DNA. Wizardry and Ultima directly inspired Dragon Quest and Final Fantasy, birthing the JRPG genre.