Why not both? There's a board certification in clinical informatics where the current opportunities are endless. My partner is over 40, board certified in CI and anesthesia, and makes damn good money. There are plenty of opportunities for people who enjoy problem solving in both medicine and tech — plus, there's a whole lot less ageism.